]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
Add --wait to iptables commands
authorAlex Schultz <aschultz@mirantis.com>
Mon, 15 Aug 2016 17:01:50 +0000 (11:01 -0600)
committerAlex Schultz <aschultz@mirantis.com>
Fri, 26 Aug 2016 14:16:13 +0000 (08:16 -0600)
commita407bcdc746e1eed1585ab493ac86705198c5319
treeff0a09a8c9df628d712ade12d3321c9cc656b839
parent05fa6e6dbf77163ed5a1ee592de091b78a3c5d1f
Add --wait to iptables commands

This change adds the --wait flag to the insert/update/delete iptables
actions to prevent failures from occuring when iptables is running
outside of puppet. Previously if a script or a user is running iptables
commands while puppet is running, there may be failures in the firewall
provider if iptables cannot get a lock. By default, iptables will just
fail with an error so using --wait will make it wait until a lock can be
established. The --wait is only added for iptables >= 1.4.20.
lib/puppet/provider/firewall/iptables.rb