Puppet Class: r_profile::linux::systemd
- Defined in:
- manifests/linux/systemd.pp
Overview
R_profile::Linux::Systemd
Configure systemd on linux
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/linux/systemd.pp', line 4
class r_profile::linux::systemd {
# Provide a graph node that we can notify to get systemd to reload itself.
# If this is not a systemd controlled system, we simply run the true command
# instead so that we can exit with status 0
if $::osfamily == 'RedHat'
and ($::operatingsystemrelease =~ /^7/ or $::operatingsystem == 'Fedora') {
$command = "systemctl daemon-reload"
} else {
$command = "true"
}
exec { "systemctl_daemon_reload":
command => $command,
refreshonly => true,
path => "/bin:/usr/bin:/usr/local/bin"
}
}
|