summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 21 insertions, 5 deletions
diff --git a/README.md b/README.md
index 283ebdb..f70bcb0 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,15 @@
-Systemd
-=======
+# Systemd
[![Puppet Forge](http://img.shields.io/puppetforge/v/camptocamp/systemd.svg)](https://forge.puppetlabs.com/camptocamp/systemd)
[![Build Status](https://travis-ci.org/camptocamp/puppet-systemd.png?branch=master)](https://travis-ci.org/camptocamp/puppet-systemd)
-Overview
---------
+## Overview
-This module just declares an `Exec['systemctl-daemon-reload']` resource that you can use to refresh the daemon.
+This module declares exec resources that you can use when you change systemd units or configuration files.
+
+## Examples
+
+### systemctl --daemon-reload
```puppet
include ::systemd
@@ -20,3 +22,17 @@ file { '/usr/lib/systemd/system/foo.service':
} ~>
Exec['systemctl-daemon-reload']
```
+
+### systemd-tmpfiles --create
+
+```puppet
+include ::systemd
+file { '/etc/tmpfiles.d/foo.conf':
+ ensure => file,
+ owner => 'root',
+ group => 'root',
+ mode => '0644',
+ source => "puppet:///modules/${module_name}/foo.conf",
+} ~>
+Exec['systemd-tmpfiles-create']
+```