e1c20c9b1f
Change-Id: Ibf7d3aa962e2e0727f0593f70186521602c48ca6
25 lines
449 B
Puppet
25 lines
449 B
Puppet
class openstack_integration::rabbitmq {
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
$package_provider = 'apt'
|
|
}
|
|
'RedHat': {
|
|
$package_provider = 'yum'
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily (${::osfamily})")
|
|
}
|
|
}
|
|
|
|
class { '::rabbitmq':
|
|
delete_guest_user => true,
|
|
package_provider => $package_provider,
|
|
}
|
|
rabbitmq_vhost { '/':
|
|
provider => 'rabbitmqctl',
|
|
require => Class['::rabbitmq'],
|
|
}
|
|
|
|
}
|