From: fsdef Date: Sun, 14 Jun 2015 16:05:30 +0000 (+0300) Subject: Fix severe installation hang on jessie. X-Git-Tag: 1.7.0~23^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=5b3a16ffcae4c9161baa0b7bd9256850085cad08;p=puppet-modules%2Fpuppetlabs-firewall.git Fix severe installation hang on jessie. On jessie iptables-persistent pops up debconf to ask if the current firewall setup should be saved which leads to puppet hanging and 99% of the time half configured firewall and ssh lockout. This patch sets the value to false before the install so that debconf doesnt pop up - iptables rules shouldn't be saved automatically since they will be overridden by puppet'. --- diff --git a/manifests/linux/debian.pp b/manifests/linux/debian.pp index 87ec123..d7941e2 100644 --- a/manifests/linux/debian.pp +++ b/manifests/linux/debian.pp @@ -21,8 +21,14 @@ class firewall::linux::debian ( ) 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'] } }