Skip to content

Commit

Permalink
Merge pull request voxpupuli#535 from arteal/master
Browse files Browse the repository at this point in the history
Systemd open files limit
  • Loading branch information
hunner committed Jun 22, 2017
2 parents 1385701 + 33f379e commit 24f70c7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,27 @@

case $::osfamily {
'Debian': {
if versioncmp($::operatingsystemmajrelease, '16.04') >= 0 {
file { '/etc/systemd/system/rabbitmq-server.service.d':
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'),
owner => '0',
group => '0',
mode => '0644',
notify => Exec['rabbitmq-systemd-reload'],
}
exec { 'rabbitmq-systemd-reload':
command => '/bin/systemctl daemon-reload',
notify => Class['Rabbitmq::Service'],
refreshonly => true,
}
}
file { '/etc/default/rabbitmq-server':
ensure => file,
content => template('rabbitmq/default.erb'),
Expand Down

0 comments on commit 24f70c7

Please sign in to comment.