f70bcb0c04f79867fad709f0fc74ee5345b9ff78
[puppet_systemd.git] / README.md
1 # Systemd
2
3 [![Puppet Forge](http://img.shields.io/puppetforge/v/camptocamp/systemd.svg)](https://forge.puppetlabs.com/camptocamp/systemd)
4 [![Build Status](https://travis-ci.org/camptocamp/puppet-systemd.png?branch=master)](https://travis-ci.org/camptocamp/puppet-systemd)
5
6 ## Overview
7
8 This module declares exec resources that you can use when you change systemd units or configuration files.
9
10 ## Examples
11
12 ### systemctl --daemon-reload
13
14 ```puppet
15 include ::systemd
16 file { '/usr/lib/systemd/system/foo.service':
17   ensure => file,
18   owner  => 'root',
19   group  => 'root',
20   mode   => '0644',
21   source => "puppet:///modules/${module_name}/foo.service",
22 } ~>
23 Exec['systemctl-daemon-reload']
24 ```
25
26 ### systemd-tmpfiles --create
27
28 ```puppet
29 include ::systemd
30 file { '/etc/tmpfiles.d/foo.conf':
31   ensure => file,
32   owner  => 'root',
33   group  => 'root',
34   mode   => '0644',
35   source => "puppet:///modules/${module_name}/foo.conf",
36 } ~>
37 Exec['systemd-tmpfiles-create']
38 ```