Skip to content

Commit

Permalink
Fix severe installation hang on jessie.
Browse files Browse the repository at this point in the history
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'.
  • Loading branch information
fsdef authored and fsdef committed Jun 15, 2015
1 parent 1ceff19 commit 5b3a16f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion manifests/linux/debian.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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']
}
}

Expand Down

0 comments on commit 5b3a16f

Please sign in to comment.