diff options
Diffstat (limited to 'puppet/modules/systemd/manifests')
m--------- | puppet/modules/systemd | 0 | ||||
-rw-r--r-- | puppet/modules/systemd/manifests/enable.pp | 8 | ||||
-rw-r--r-- | puppet/modules/systemd/manifests/init.pp | 18 |
3 files changed, 26 insertions, 0 deletions
diff --git a/puppet/modules/systemd b/puppet/modules/systemd deleted file mode 160000 -Subproject 6d47fd4999fe03eba6fb11c4490dcbb90d93790 diff --git a/puppet/modules/systemd/manifests/enable.pp b/puppet/modules/systemd/manifests/enable.pp new file mode 100644 index 00000000..e1bee18a --- /dev/null +++ b/puppet/modules/systemd/manifests/enable.pp @@ -0,0 +1,8 @@ +# enables a systemd resource +define systemd::enable () { + + exec { "enable_systemd_${name}": + refreshonly => true, + command => "/bin/systemctl enable ${name}" + } +} diff --git a/puppet/modules/systemd/manifests/init.pp b/puppet/modules/systemd/manifests/init.pp new file mode 100644 index 00000000..5e6ad792 --- /dev/null +++ b/puppet/modules/systemd/manifests/init.pp @@ -0,0 +1,18 @@ +class systemd { + + Exec { + refreshonly => true, + path => $::path, + } + + exec { + 'systemctl-daemon-reload': + command => 'systemctl daemon-reload', + } + + exec { + 'systemd-tmpfiles-create': + command => 'systemd-tmpfiles --create', + } + +} |