fuel-library/deployment/puppet/nova/manifests/qpid.pp
Bogdan Dobrelya e2cbdd0649 Sync puppet-nova
109d4825e5cdd15aa529c1ef7bcccc05f6a78178 4.0.0

Partial blueprint merge-openstack-puppet-modules

Change-Id: I672620f149e4a63240144f0ce20e84b084cfd459
Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
2014-07-04 09:01:26 +03:00

58 lines
1.1 KiB
Puppet

# == Class: nova::qpid
#
# Class for installing qpid server for nova
#
# === Parameters:
#
# [*enabled*]
# (optional) Whether to enable the service
# Defaults to true
#
# [*user*]
# (optional) The user to create in qpid
# Defaults to 'guest'
#
# [*password*]
# (optional) The password to create for the user
# Defaults to 'guest'
#
# [*file*]
# (optional) Sasl file for the user
# Defaults to '/var/lib/qpidd/qpidd.sasldb'
#
# [*realm*]
# (optional) Realm for the user
# Defaults to 'OPENSTACK'
#
class nova::qpid(
$enabled = true,
$user = 'guest',
$password = 'guest',
$file = '/var/lib/qpidd/qpidd.sasldb',
$realm = 'OPENSTACK'
) {
# only configure nova after the queue is up
Class['qpid::server'] -> Package<| title == 'nova-common' |>
if ($enabled) {
$service_ensure = 'running'
qpid_user { $user:
password => $password,
file => $file,
realm => $realm,
provider => 'saslpasswd2',
require => Class['qpid::server'],
}
} else {
$service_ensure = 'stopped'
}
class { 'qpid::server':
service_ensure => $service_ensure
}
}