equal
deleted
inserted
replaced
|
1 # Systemd |
|
2 |
|
3 [](https://forge.puppetlabs.com/camptocamp/systemd) |
|
4 [](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 ``` |