Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
class ifupdown {
$intvars = hiera('interfaces')[$hostname]
$networks = hiera('networks')
file { '/etc/network/interfaces':
owner => root,
group => root,
mode => '0644',
content => template('ifupdown/interfaces.erb'),
}
exec { '/sbin/ifdown -a && /sbin/ifup -a':
subscribe => File['/etc/network/interfaces'],
refreshonly => true
}
}