marcus
public text v1 · immutable file { "ifcfg-$name":
path => "/etc/sysconfig/network-scripts/ifcfg-$name",
owner => 'root',
group => 'root',
mode => '644',
ensure => 'present',
content => template("$module/ifcfg.erb"),
require => Service['network::stop'],
notify => Service['network::start'],
}
service {
'network::stop':
ensure => stopped,
command => network,
}
service {
'network::start':
ensure => running,
enable => true,
hasstatus => true,
hasrestart => true,
command => network,
}