cad5371de91948ff17ba59adcab223cdcf4483ad
[mirror/dsa-puppet.git] / 3rdparty / modules / systemd / manifests / tmpfiles.pp
1 # Update the systemd temp files
2 #
3 # @api public
4 #
5 # @see systemd-tmpfiles(8)
6 #
7 # @param operations
8 #   The operations to perform on the systemd tempfiles
9 #
10 #   * All operations may be combined but you'll probably only ever want to
11 #     use ``create``
12 #
13 class systemd::tmpfiles (
14   Array[Enum['create','clean','remove']] $operations = ['create']
15 ) {
16
17   $_ops = join(prefix($operations, '--'), ' ')
18
19   exec { 'systemd-tmpfiles':
20     command     => "systemd-tmpfiles ${_ops}",
21     refreshonly => true,
22     path        => $::path,
23   }
24 }