Changing default params for db/* and init.pp
Change-Id: I5fbc0693eed14cab2f1105fa374346ac8d239ede
This commit is contained in:
parent
1cf79665d1
commit
3c5d1a3f97
|
@ -7,7 +7,6 @@
|
||||||
#
|
#
|
||||||
# [*password*]
|
# [*password*]
|
||||||
# (Mandatory) Password to connect to the database.
|
# (Mandatory) Password to connect to the database.
|
||||||
# Defaults to 'false'.
|
|
||||||
#
|
#
|
||||||
# [*dbname*]
|
# [*dbname*]
|
||||||
# (Optional) Name of the database.
|
# (Optional) Name of the database.
|
||||||
|
|
|
@ -16,13 +16,13 @@
|
||||||
# (Optional) User to connect to the database.
|
# (Optional) User to connect to the database.
|
||||||
# Defaults to 'ec2api'.
|
# Defaults to 'ec2api'.
|
||||||
#
|
#
|
||||||
# [*encoding*]
|
# [*encoding*]
|
||||||
# (Optional) The charset to use for the database.
|
# (Optional) The charset to use for the database.
|
||||||
# Default to undef.
|
# Default to undef.
|
||||||
#
|
#
|
||||||
# [*privileges*]
|
# [*privileges*]
|
||||||
# (Optional) Privileges given to the database user.
|
# (Optional) Privileges given to the database user.
|
||||||
# Default to 'ALL'
|
# Default to 'ALL'
|
||||||
#
|
#
|
||||||
# == Dependencies
|
# == Dependencies
|
||||||
#
|
#
|
||||||
|
|
|
@ -4,11 +4,29 @@
|
||||||
#
|
#
|
||||||
# === Parameters
|
# === Parameters
|
||||||
#
|
#
|
||||||
# [*sample_parameter*]
|
# [*package_ensure*]
|
||||||
# Explanation of what this parameter affects and what it defaults to.
|
# (Optional) Ensure state for package.
|
||||||
|
# Defaults to 'present'
|
||||||
#
|
#
|
||||||
class ec2api {
|
# [*package_manage*]
|
||||||
|
# (Optional) Activate/deactivate ec2api package installation.
|
||||||
|
# Defaults to true
|
||||||
|
#
|
||||||
|
#
|
||||||
|
class ec2api (
|
||||||
|
$package_ensure = 'present',
|
||||||
|
$package_manage = true,
|
||||||
|
){
|
||||||
|
if $package_manage {
|
||||||
|
package { 'ec2api':
|
||||||
|
ensure => $package_ensure,
|
||||||
|
name => $::ec2api::params::package_manage,
|
||||||
|
}
|
||||||
|
|
||||||
include ::ec2api::params
|
Package['ec2api'] ->
|
||||||
|
File <| title == 'ec2-api-config-file' |>
|
||||||
|
|
||||||
|
Package['ec2api'] ->
|
||||||
|
File <| title == 'ec2-api-paste-ini-file' |>
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,4 +16,6 @@ class ec2api::params {
|
||||||
}
|
}
|
||||||
|
|
||||||
} # Case $::osfamily
|
} # Case $::osfamily
|
||||||
|
|
||||||
|
$package_name = 'openstack-ec2-api'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue