Prevent haproxy to run iptables during docker-puppet configuration
authorDamien Ciabrini <dciabrin@redhat.com>
Thu, 20 Jul 2017 15:48:22 +0000 (11:48 -0400)
committerAlex Schultz <aschultz@redhat.com>
Thu, 27 Jul 2017 18:59:30 +0000 (18:59 +0000)
commit50f160a148b6a973891ffc6d0882f4c0d597336e
tree187d7584789b669c94f8ecbd896618cef79409a4
parent237e613a175fd975bf6679646eaf092ff6725015
Prevent haproxy to run iptables during docker-puppet configuration

When docker-puppet runs module tripleo::haproxy to generate haproxy
configuration file, and tripleo::firewall::manage_firewall is true,
iptables is called to set up firewall rules for the proxied services
and fails due to lack of NET_ADMIN capability.

Make the generation of firewall rule configurable by exposing a
new argument to the puppet module. That way, firewall management can
be temporarily disabled when being run through docker-puppet.

Change-Id: I2d6274d061039a9793ad162ed8e750bd87bf71e9
Partial-Bug: #1697921
manifests/haproxy.pp
manifests/haproxy/endpoint.pp
manifests/profile/base/haproxy.pp
manifests/profile/pacemaker/haproxy.pp