packstack/packstack/puppet/modules/packstack/manifests/netns.pp

21 lines
487 B
Puppet

#
# Checks if netns is supported and if not updates kernel, iputils
# and iproute
class packstack::netns (
$warning = 'Kernel package with netns support has been installed.'
) {
if $::netns_support != true {
exec { 'netns_dependecy_install':
path => '/usr/bin/',
command => 'yum update -y kernel iputils iproute',
timeout => 900,
}
notify { 'packstack_info':
message => $warning,
require => Exec['netns_dependecy_install'],
}
}
}