From 7ce3190986cf8e5fe037a7ccd4c1076505b117f4 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 12 Jul 2016 16:41:59 -0400 Subject: remove submodules in preparation for move to subrepos Change-Id: Ia7655153b556337f676e3d909559c4a7306bedd6 --- puppet/modules/systemd | 1 - 1 file changed, 1 deletion(-) delete mode 160000 puppet/modules/systemd (limited to 'puppet/modules/systemd/manifests') diff --git a/puppet/modules/systemd b/puppet/modules/systemd deleted file mode 160000 index 6d47fd49..00000000 --- a/puppet/modules/systemd +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 6d47fd4999fe03eba6fb11c4490dcbb90d937900 -- cgit v1.2.3 From fae09e7fad7bc3230dc6184d256ddcd58b4484c7 Mon Sep 17 00:00:00 2001 From: Micah Date: Tue, 12 Jul 2016 16:46:34 -0400 Subject: git subrepo clone https://leap.se/git/puppet_systemd puppet/modules/systemd subrepo: subdir: "puppet/modules/systemd" merged: "6d47fd4" upstream: origin: "https://leap.se/git/puppet_systemd" branch: "master" commit: "6d47fd4" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo" commit: "1e79595" Change-Id: If71ec55d9f038b04fcab6d4ce5620db89168f75c --- puppet/modules/systemd/manifests/init.pp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 puppet/modules/systemd/manifests/init.pp (limited to 'puppet/modules/systemd/manifests') 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', + } + +} -- cgit v1.2.3 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