Puppet Class: systemd::tmpfiles

Defined in:
manifests/tmpfiles.pp

Overview

Update the systemd temp files

Parameters:

  • operations (Array[Enum['create','clean','remove']]) (defaults to: ['create'])

    The operations to perform on the systemd tempfiles

    • All operations may be combined but you’ll probably only ever want to use “create“

See Also:

  • systemd-tmpfiles(8)


13
14
15
16
17
18
19
20
21
22
23
# File 'manifests/tmpfiles.pp', line 13

class systemd::tmpfiles (
  Array[Enum['create','clean','remove']] $operations = ['create']
) {
  $_ops = join(prefix($operations, '--'), ' ')

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