blob: 0f659dbf593e40d6b8384f0f9b0be6ae331a0e6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# -- Define: systemd::unit_file
# Creates a unit file and reloads systemd
define systemd::unit_file(
$ensure = file,
$path = '/etc/systemd/system',
$content = undef,
$source = undef,
) {
include ::systemd
file { "${path}/${title}":
ensure => $ensure,
content => $content,
source => $source,
owner => 'root',
group => 'root',
mode => '0444',
notify => Exec['systemctl-daemon-reload'],
}
}
|