summaryrefslogtreecommitdiff
path: root/sitemodules/profiles/manifests/systemd_reload.pp
blob: 89e76ad0e548e1b7cbf0c22a3beaf152d5ac8dc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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,
  }
}