Files
puppet-nova/manifests/objectstore.pp
kirby@puppetlabs.com 895e057abb Enable nova service by default
This commit updates the default value for enable for nova components to
default to true, instead of false. Without this
change the nova service is not enabled by default resulting in a
different behavior than with other puppet openstack modules.
Associated tests are updated to expect the change in defaults.

Co-Authored-By: Cody Herriges <cody@puppetlabs.com>
Change-Id: I49fc84f9fedfe00d7846441e1b49334abb09e0eb
Closes-bug: #1220473
2015-07-15 13:58:09 -07:00

45 lines
1015 B
Puppet

# == Class: nova::objectstore
#
# Manages the nova-objectstore service
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the service
# Defaults to true
#
# [*manage_service*]
# (optional) Whether to start/stop the service
# Defaults to true
#
# [*ensure_package*]
# (optional) The package state to set
# Defaults to 'present'
#
# [*bind_address*]
# (optional) The address to bind to
# Defaults to '0.0.0.0'
#
class nova::objectstore(
$enabled = true,
$manage_service = true,
$ensure_package = 'present',
$bind_address = '0.0.0.0'
) {
include ::nova::params
nova::generic_service { 'objectstore':
enabled => $enabled,
manage_service => $manage_service,
package_name => $::nova::params::objectstore_package_name,
service_name => $::nova::params::objectstore_service_name,
ensure_package => $ensure_package,
require => Package['nova-common'],
}
nova_config {
'DEFAULT/s3_listen': value => $bind_address;
}
}