Skip to content

Commit

Permalink
set PrivateTmp=true for puppetserver
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeni committed Nov 3, 2023
1 parent 9f21a41 commit ad6e23a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions manifests/server/puppetserver.pp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,13 @@
unit => 'puppetserver.service',
content => "[Service]\nLimitNOFILE=${max_open_files}\n",
}

systemd::dropin_file { 'puppetserver.service-privatetmp.conf':
ensure => $ensure_max_open_files,
filename => 'privatetmp.conf',
unit => 'puppetserver.service',
content => "[Service]\nPrivateTmp=true\n",
}
} else {
file_line { 'puppet::server::puppetserver::max_open_files':
ensure => $ensure_max_open_files,
Expand Down

0 comments on commit ad6e23a

Please sign in to comment.