summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/systemd_reload.pp
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules/profiles/manifests/systemd_reload.pp')
-rw-r--r--sitemodules/profiles/manifests/systemd_reload.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/systemd_reload.pp b/sitemodules/profiles/manifests/systemd_reload.pp
new file mode 100644
index 0000000..89e76ad
--- /dev/null
+++ b/sitemodules/profiles/manifests/systemd_reload.pp
@@ -0,0 +1,35 @@
+# Class: profiles::systemd_reload
+# ===============================
+#
+# systemd daemon reload execution that can be triggerd from other resources by
+# notifying Exec['reload systemd configuration'].
+#
+# This manifest is meant to be included from other manifests.
+#
+# Examples
+# --------
+#
+# @example
+# include profiles::systemd_reload
+#
+# file { 'myfile':
+# source => 'some_source',
+# notify => Exec['reload systemd configuration'],
+# }
+#
+# Authors
+# -------
+#
+# Jan Dittberner <jandd@cacert.org>
+#
+# Copyright
+# ---------
+#
+# Copyright 2019 Jan Dittberner
+class profiles::systemd_reload (
+) {
+ exec { 'reload systemd configuration':
+ command => '/bin/systemctl daemon-reload',
+ refreshonly => true,
+ }
+}