From 5b3a16ffcae4c9161baa0b7bd9256850085cad08 Mon Sep 17 00:00:00 2001 From: fsdef Date: Sun, 14 Jun 2015 19:05:30 +0300 Subject: [PATCH] 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'. --- manifests/linux/debian.pp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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'] } } -- 2.45.2