summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorRaphaël Pinson <github+aem1eeshi1@raphink.net>2016-05-04 09:31:53 +0200
committerRaphaël Pinson <github+aem1eeshi1@raphink.net>2016-05-04 09:31:53 +0200
commit106be55a2469a6b87ac33e0b2fa8bca40ef2cb4d (patch)
tree761ebe4a9b31f80088c551e1f0f123cffb11701d /README.md
parent783f6b7a13f21c78d89241b2e5cebe82d80febfb (diff)
parent040f1acf02dc379e3fe577d900b96b47a38a714a (diff)
Merge pull request #4 from felixb/feature/unit-files
Shortcut for creating unit files / tmpfiles
Diffstat (limited to 'README.md')
-rw-r--r--README.md30
1 files changed, 26 insertions, 4 deletions
diff --git a/README.md b/README.md
index f70bcb0..5d962c9 100644
--- a/README.md
+++ b/README.md
@@ -5,11 +5,23 @@
## Overview
-This module declares exec resources that you can use when you change systemd units or configuration files.
+This module declares exec resources to create global sync points for reloading systemd.
-## Examples
+## Usage and examples
-### systemctl --daemon-reload
+There are two ways to use this module.
+
+### unit files
+
+Let this module handle file creation and systemd reloading.
+
+```puppet
+::systemd::unit_file { 'foo.service':
+ source => "puppet:///modules/${module_name}/foo.service",
+}
+```
+
+Or handle file creation yourself and trigger systemd.
```puppet
include ::systemd
@@ -23,7 +35,17 @@ file { '/usr/lib/systemd/system/foo.service':
Exec['systemctl-daemon-reload']
```
-### systemd-tmpfiles --create
+### tmpfiles
+
+Let this module handle file creation and systemd reloading
+
+```puppet
+::systemd::tmpfile { 'foo.conf':
+ source => "puppet:///modules/${module_name}/foo.conf",
+}
+```
+
+Or handle file creation yourself and trigger systemd.
```puppet
include ::systemd