Skip to content
Snippets Groups Projects
Commit 068bc8d4 authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

add new systemd class

parent 1a167dfb
No related branches found
No related tags found
No related merge requests found
Unreleased Unreleased
[dns] Changes Livermore detection to use the system's primary IP address, [systemd] New class to allow systemd daemon reloads. (adamhl)
[dns] Changes Livermore detection to use the system's primary IP address,
instead of using a manually-set parameter. (akkornel) instead of using a manually-set parameter. (akkornel)
[kerberos] Automatically determine if we are in Livermore; if we are, place [kerberos] Automatically determine if we are in Livermore; if we are, place
the Livermore-based KDC at the top of the list. (akkornel) the Livermore-based KDC at the top of the list. (akkornel)
Clients who are using the base::kerberos::dr class should immediately switch Clients who are using the base::kerberos::dr class should immediately switch
......
# This code is from the Puppet Forge project justin8-systemd
#
# If you want to reload the systemd service on a unit file change, include
# this class and add a dependency:
#
# notify => Exec['systemd-daemon-reload']
#
class systemd {
exec { 'systemd-daemon-reload':
path => '/bin:/usr/bin:/sbin:/usr/sbin',
command => 'systemctl daemon-reload',
refreshonly => true,
}
case $::osfamily {
'Archlinux': {
$unit_path = '/usr/lib/systemd/system'
}
'Debian': {
$unit_path = '/lib/systemd/system'
}
'RedHat': {
$unit_path = '/usr/lib/systemd/system'
}
default: {
$unit_path = '/usr/lib/systemd/system'
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment