blob: c6053828becd10675f1f1a43523f0f23a930c0d3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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'],
Service["${name}"]
],
require => File["/etc/systemd/system/${name}.service.d"];
}
}
|