diff --git a/manifests/config.pp b/manifests/config.pp index 5e3f1ef6e..159ae68db 100644 --- a/manifests/config.pp +++ b/manifests/config.pp @@ -120,10 +120,11 @@ 'RedHat': { if versioncmp($::operatingsystemmajrelease, '7') >= 0 { file { '/etc/systemd/system/rabbitmq-server.service.d': - ensure => directory, - owner => '0', - group => '0', - mode => '0755', + ensure => directory, + owner => '0', + group => '0', + mode => '0755', + selinux_ignore_defaults => true, } -> file { '/etc/systemd/system/rabbitmq-server.service.d/limits.conf': content => template('rabbitmq/rabbitmq-server.service.d/limits.conf'), diff --git a/spec/classes/rabbitmq_spec.rb b/spec/classes/rabbitmq_spec.rb index 9ba29f76a..675a8759e 100644 --- a/spec/classes/rabbitmq_spec.rb +++ b/spec/classes/rabbitmq_spec.rb @@ -252,10 +252,11 @@ let(:facts) {{ :osfamily => 'RedHat', :operatingsystemmajrelease => '7' }} it { should contain_file('/etc/systemd/system/rabbitmq-server.service.d').with( - 'ensure' => 'directory', - 'owner' => '0', - 'group' => '0', - 'mode' => '0755' + 'ensure' => 'directory', + 'owner' => '0', + 'group' => '0', + 'mode' => '0755', + 'selinux_ignore_defaults' => true ) } it { should contain_exec('rabbitmq-systemd-reload').with(