Revision 8ab95bcd
Added by Ewoud Kohl van Wijngaarden almost 3 years ago
manifests/init.pp | ||
---|---|---|
if versioncmp($facts['os']['release']['major'], '7') >= 0 {
|
||
include systemd
|
||
systemd::dropin_file { 'interfaces.conf':
|
||
unit => 'dhcpd.service',
|
||
content => template('dhcp/redhat/systemd-dropin.conf.erb'),
|
||
unit => 'dhcpd.service',
|
||
content => template('dhcp/redhat/systemd-dropin.conf.erb'),
|
||
notify_service => true,
|
||
}
|
||
} else {
|
||
file { '/etc/sysconfig/dhcpd':
|
Also available in: Unified diff
Ensure systemd drop-in happens before service
By using notify_service we ensure that the drop-in exists before the
service is started and restarted if it changes.