blob: 976dc08f4834b536c655b28345b587faf2dc713d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
define systemd::override($source = undef, $content = undef) {
include systemd
file {
"/etc/systemd/system/${name}.service.d":
ensure => directory;
"/etc/systemd/system/${name}.service.d/override.conf":
source => $source,
content => $content,
notify => Exec['/usr/bin/systemctl daemon-reload'],
require => File["/etc/systemd/system/${name}.service.d"];
}
}
|