diff --git a/manifests/linux/debian.pp b/manifests/linux/debian.pp index 87ec123df..d7941e21d 100644 --- a/manifests/linux/debian.pp +++ b/manifests/linux/debian.pp @@ -21,8 +21,14 @@ ) inherits ::firewall::params { if $package_name { + #Fixes hang while installing iptables-persistent on debian 8 + exec {'iptables-persistent-debconf': + command => "/bin/echo \"${package_name} ${package_name}/autosave_v4 boolean false\" | /usr/bin/debconf-set-selections && /bin/echo \"${package_name} ${package_name}/autosave_v6 boolean false\" | /usr/bin/debconf-set-selections", + refreshonly => true + } package { $package_name: - ensure => present, + ensure => present, + require => Exec['iptables-persistent-debconf'] } }