
* Fixes following warnings: * double quoted string containing no variables * string containing only a variable * variable not enclosed in {} * indentation of => is not properly aligned * Fix following error: * two-space soft tabs not used * Remove some comments from the code, they added no value. Change-Id: I3165e65e95c3565951077786d2edf77245460c35
36 lines
655 B
Puppet
36 lines
655 B
Puppet
#
|
|
# class for installing qpid server for cinder
|
|
#
|
|
#
|
|
class cinder::qpid(
|
|
$enabled = true,
|
|
$user='guest',
|
|
$password='guest',
|
|
$file='/var/lib/qpidd/qpidd.sasldb',
|
|
$realm='OPENSTACK'
|
|
) {
|
|
|
|
# only configure cinder after the queue is up
|
|
Class['qpid::server'] -> Package<| title == 'cinder' |>
|
|
|
|
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
|
|
}
|
|
|
|
}
|