puppet-nova/manifests/objectstore.pp
Clayton O'Neill 00e744a9b1 Add Puppet 4.x lint checks
This changes the puppet-lint requirement to 1.1.x, so that we can use
puppet-lint plugins.  Most of these plugins are for 4.x compat, but some
just catch common errors.

Change-Id: I48838fa11902247101c0473abff65cbb2558f609
2015-02-16 15:58:23 -05:00

45 lines
1017 B
Puppet

# == Class: nova::objectstore
#
# Manages the nova-objectstore service
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the service
# Defaults to false
#
# [*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 = false,
$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;
}
}