summaryrefslogtreecommitdiff
path: root/puppet/modules/systemd
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-09-08 20:37:27 +0200
committervarac <varacanero@zeromail.org>2016-09-08 20:37:27 +0200
commit8cb40d25f3e74b37c47b0c265b346f9de860aa77 (patch)
tree82798a5ef02f6403959fb0b814a77005a19e0151 /puppet/modules/systemd
parent49fdcf22084258954410d158428d5e38652c36f4 (diff)
parenta3af8acba8cd479f47d76784082d95100c0833ef (diff)
Merge branch 'ensure_clamav_running' into develop
Diffstat (limited to 'puppet/modules/systemd')
-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}"
+ }
+}