
Any user modification before standard system package creates the user is wrong. Usecase of patch adding the user is also broken as there are several other options: provide user before whole class nova, have user id enforced by package or as most humans do accept that in multi host enviroments there are 3 layers - user, group and netgroup. In all cases nova puppet module should never touch the user as it's provided by package on all supported systems, but for backwards compatibility the management of user is disabled if nova_group_id is undef or if nova_user_id is undef. Closes-Bug: rhbz#1115946 Change-Id: If22b27f5fb78ba6821f4d6e8c275f8b80c70dd59
45 lines
1015 B
Puppet
45 lines
1015 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;
|
|
}
|
|
}
|