diff options
author | varac <varacanero@zeromail.org> | 2016-09-08 14:27:39 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2016-09-08 15:25:34 +0200 |
commit | f5db49cf6b3ca0a5830b849c0aac074e371b95d9 (patch) | |
tree | f8d7298615bba7bdd1ff6ba68dabe8567fdbf507 /puppet | |
parent | a0fdc6dc41287f59dfa7d52c73bde5eccecdd73b (diff) |
Add systemd::enable define
Diffstat (limited to 'puppet')
-rw-r--r-- | puppet/modules/systemd/manifests/enable.pp | 8 |
1 files changed, 8 insertions, 0 deletions
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}" + } +} |