Certmonger: Only attempt to reload haproxy is it's active
authorJuan Antonio Osorio Robles <jaosorior@redhat.com>
Wed, 23 Aug 2017 06:01:53 +0000 (09:01 +0300)
committerEmilien Macchi <emilien@redhat.com>
Wed, 30 Aug 2017 15:56:37 +0000 (15:56 +0000)
commitaaeace8c72ad7e9ea540c7055f0e16e2ed797f58
treeee6ffb8008645884ec14a51d9192badf7d0bdd6f
parente6f31aa6a8d88bc0b0b0f7ae44a8dad1b16d6a50
Certmonger: Only attempt to reload haproxy is it's active

Previously, certmonger tried to reload haproxy every time after a
certificate is requested. This is useful for certificate resubmits or
renewals. However, it turned out problematic on installation, when
haproxy is not yet active, as it would try many times and end up having
a race-condition with puppet.

This checks if haproxy is active and only then will it attempt to reload
it.

Change-Id: I51f9cccb5d1518a9647778e7bf6f9426a02ceb60
Closes-Bug: #1712377
(cherry picked from commit 351ab932514f13d7a139b0b41fdc4f6f7e990c8f)
manifests/certmonger/haproxy.pp