X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fsystemd%2Fmanifests%2Ftmpfiles.pp;fp=3rdparty%2Fmodules%2Fsystemd%2Fmanifests%2Ftmpfiles.pp;h=cad5371de91948ff17ba59adcab223cdcf4483ad;hb=1329adc9f34c3c87e353983ec9023a6cf6e93e67;hp=0000000000000000000000000000000000000000;hpb=a81ff959d6c9c7605db1176b89dc2b5ffde0d903;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/systemd/manifests/tmpfiles.pp b/3rdparty/modules/systemd/manifests/tmpfiles.pp new file mode 100644 index 000000000..cad5371de --- /dev/null +++ b/3rdparty/modules/systemd/manifests/tmpfiles.pp @@ -0,0 +1,24 @@ +# 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, + } +}