From d14c56e1b6a521f99c564c6f22edf381c8831797 Mon Sep 17 00:00:00 2001 From: marios Date: Fri, 23 Dec 2016 16:07:44 +0200 Subject: Adds a pre-upgrade check that service is running (step0) Adds a step0 for most services to check that the state is running before continuing with any of the other upgrades steps (these are tagged step0). You can skip this service check by overriding the SkipUpgradeConfigTags parameter as follows: parameter_defaults: SkipUpgradeConfigTags: validation Co-Authored-By: Steven Hardy Change-Id: Ie276f153015f671b720b6ed5beaac1b921661909 --- puppet/services/apache-internal-tls-certmonger.yaml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'puppet/services/apache-internal-tls-certmonger.yaml') diff --git a/puppet/services/apache-internal-tls-certmonger.yaml b/puppet/services/apache-internal-tls-certmonger.yaml index 97d6ff8e..4c21e02a 100644 --- a/puppet/services/apache-internal-tls-certmonger.yaml +++ b/puppet/services/apache-internal-tls-certmonger.yaml @@ -63,3 +63,7 @@ outputs: type: node for_each: $NETWORK: {get_attr: [ApacheNetworks, value]} + upgrade_tasks: + - name: "PreUpgrade step0,validation: Check service httpd is running" + shell: /usr/bin/systemctl show 'httpd' --property ActiveState | grep '\bactive\b' + tags: step0,validation -- cgit 1.2.3-korg