All pastes #2073180 Raw Edit

marcus

public text v1 · immutable
#2073180 ·published 2011-06-01 10:46 UTC
rendered paste body
       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,
        }