From f5db49cf6b3ca0a5830b849c0aac074e371b95d9 Mon Sep 17 00:00:00 2001 From: varac Date: Thu, 8 Sep 2016 14:27:39 +0200 Subject: Add systemd::enable define --- puppet/modules/systemd/manifests/enable.pp | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 puppet/modules/systemd/manifests/enable.pp (limited to 'puppet/modules/systemd/manifests') 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}" + } +} -- cgit v1.2.3