diff options
author | Varac <varac@leap.se> | 2017-01-18 17:40:25 +0000 |
---|---|---|
committer | Varac <varac@leap.se> | 2017-01-18 17:40:25 +0000 |
commit | 8cba23d7308af4ed018d42935adee442e2e53134 (patch) | |
tree | 96135e4aed98a2e366d5ba1c05b37e2cdeebf901 /puppet/modules/systemd/manifests/tmpfile.pp | |
parent | dd189d2de941ec081261ced814a9c822e5ef02a1 (diff) | |
parent | 80e0ca380e92fe435622dbd35d1a5baedb6c3f92 (diff) |
Merge branch 'apache-auto-restart' into 'master'
Add apache auto-restart extension file
See merge request !66
Diffstat (limited to 'puppet/modules/systemd/manifests/tmpfile.pp')
-rw-r--r-- | puppet/modules/systemd/manifests/tmpfile.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/puppet/modules/systemd/manifests/tmpfile.pp b/puppet/modules/systemd/manifests/tmpfile.pp new file mode 100644 index 00000000..c4d1a05f --- /dev/null +++ b/puppet/modules/systemd/manifests/tmpfile.pp @@ -0,0 +1,20 @@ +# -- Define: systemd::tmpfile +# Creates a tmpfile and reloads systemd +define systemd::tmpfile( + $ensure = file, + $path = '/etc/tmpfiles.d', + $content = undef, + $source = undef, +) { + include ::systemd + + file { "${path}/${title}": + ensure => $ensure, + content => $content, + source => $source, + owner => 'root', + group => 'root', + mode => '0444', + notify => Exec['systemd-tmpfiles-create'], + } +}
\ No newline at end of file |