00e744a9b1
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
58 lines
1.1 KiB
Puppet
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
|
|
}
|
|
|
|
}
|