summaryrefslogtreecommitdiff
path: root/puppet/modules/systemd/manifests/tmpfile.pp
blob: c4d1a05f79ae3396602a0e736f9699291f3903cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'],
  }
}