]> WPIA git - infra.git/blob - modules/systemd/manifests/unit_file.pp
add: systemd module for executing daemon-reload
[infra.git] / modules / systemd / manifests / unit_file.pp
1 define systemd::unit_file(
2   $ensure = file,
3   $path = '/etc/systemd/system',
4   $content = undef,
5   $source = undef,
6 ) {
7   include ::systemd
8
9   file { "${path}/${title}":
10     ensure  => $ensure,
11     content => $content,
12     source  => $source,
13     owner   => 'root',
14     group   => 'root',
15     mode    => '0644',
16     notify  => Exec['systemctl-daemon-reload'],
17   }
18 }