File: tmpfiles.pp

package info (click to toggle)
puppet-module-camptocamp-systemd 2.12.0-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 680 kB
  • sloc: ruby: 1,094; sh: 10; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 533 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Update the systemd temp files
#
# @api public
#
# @see systemd-tmpfiles(8)
#
# @param operations
#   The operations to perform on the systemd tempfiles
#
#   * All operations may be combined but you'll probably only ever want to
#     use ``create``
#
class systemd::tmpfiles (
  Array[Enum['create','clean','remove']] $operations = ['create']
) {
  $_ops = join(prefix($operations, '--'), ' ')

  exec { 'systemd-tmpfiles':
    command     => "systemd-tmpfiles ${_ops}",
    refreshonly => true,
    path        => $::path,
  }
}