yatinkarel
b44d0bdd5a
- scenario001 and 004 will be running without ceph until ceph repos get available for CentOS8 - scenario003 will run not run with linuxbridge until next CentOS minor version as it has issues:- - https://bugzilla.redhat.com/show_bug.cgi?id=1720637 - Add Puppetfile_centos7 to have different puppet modules as compared to other distros. Currently only puppet-mysql needs to be kept pinned for centos7 as newere mariadb version is required to remove the pin, CentOS8 and ubuntu have required mariadb version so pin is removed. So automatic updates of puppet modules will not be applied for CentOS7 as those jobs are going to be removed in coming months. - check for rdo_dlrn url existence only for RedHat distros. Change-Id: I98fc088cd87c1412544f9590ce7a925b413297e2
46 lines
1.6 KiB
Puppet
46 lines
1.6 KiB
Puppet
class openstack_integration::rabbitmq {
|
|
|
|
include openstack_integration::params
|
|
include openstack_integration::config
|
|
|
|
if $::openstack_integration::config::ssl {
|
|
file { '/etc/rabbitmq/ssl/private':
|
|
ensure => directory,
|
|
owner => 'root',
|
|
mode => '0755',
|
|
selinux_ignore_defaults => true,
|
|
before => File["/etc/rabbitmq/ssl/private/${::fqdn}.pem"],
|
|
}
|
|
openstack_integration::ssl_key { 'rabbitmq':
|
|
key_path => "/etc/rabbitmq/ssl/private/${::fqdn}.pem",
|
|
require => File['/etc/rabbitmq/ssl/private'],
|
|
notify => Service['rabbitmq-server'],
|
|
}
|
|
class { 'rabbitmq':
|
|
package_provider => $::package_provider,
|
|
delete_guest_user => true,
|
|
ssl => true,
|
|
ssl_only => true,
|
|
ssl_cacert => $::openstack_integration::params::ca_bundle_cert_path,
|
|
ssl_cert => $::openstack_integration::params::cert_path,
|
|
ssl_key => "/etc/rabbitmq/ssl/private/${::fqdn}.pem",
|
|
environment_variables => $::openstack_integration::config::rabbit_env,
|
|
repos_ensure => false,
|
|
manage_python => false,
|
|
}
|
|
} else {
|
|
class { 'rabbitmq':
|
|
package_provider => $::package_provider,
|
|
delete_guest_user => true,
|
|
environment_variables => $::openstack_integration::config::rabbit_env,
|
|
repos_ensure => false,
|
|
manage_python => false,
|
|
}
|
|
}
|
|
rabbitmq_vhost { '/':
|
|
provider => 'rabbitmqctl',
|
|
require => Class['rabbitmq'],
|
|
}
|
|
|
|
}
|