summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-09-08 14:27:39 +0200
committervarac <varacanero@zeromail.org>2016-09-08 15:25:34 +0200
commitf5db49cf6b3ca0a5830b849c0aac074e371b95d9 (patch)
treef8d7298615bba7bdd1ff6ba68dabe8567fdbf507
parenta0fdc6dc41287f59dfa7d52c73bde5eccecdd73b (diff)
Add systemd::enable define
-rw-r--r--puppet/modules/systemd/manifests/enable.pp8
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}"
+ }
+}