puppet: Also set systemd limits.

This commit is contained in:
Alex Vandiver 2020-07-29 01:49:19 +00:00 committed by Tim Abbott
parent 1c76036c61
commit 26eb1d7371
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1,2 @@
[Manager]
DefaultLimitNOFILE=1000000

View File

@ -102,6 +102,19 @@ class zulip::profile::base {
group => 'root', group => 'root',
source => 'puppet:///modules/zulip/security/limits.conf', source => 'puppet:///modules/zulip/security/limits.conf',
} }
file { '/etc/systemd/system.conf.d/':
ensure => directory,
mode => '0755',
owner => 'root',
group => 'root',
}
file { '/etc/systemd/system.conf.d/limits.conf':
ensure => file,
mode => '0644',
owner => 'root',
group => 'root',
source => 'puppet:///modules/zulip/systemd/system.conf.d/limits.conf',
}
service { 'puppet': service { 'puppet':
ensure => 'stopped', ensure => 'stopped',