Merge "Align HCI environment file with list of services from roles_data" into stable...
[apex-tripleo-heat-templates.git] / puppet / services / haproxy.yaml
index 981a08d..7c7df34 100644 (file)
@@ -78,8 +78,11 @@ outputs:
       step_config: |
         include ::tripleo::profile::base::haproxy
       upgrade_tasks:
+        - name: "PreUpgrade step0,validation: Check service haproxy is running"
+          shell: /usr/bin/systemctl show 'haproxy' --property ActiveState | grep '\bactive\b'
+          tags: step0,validation
         - name: Stop haproxy service
-          tags: step1
+          tags: step2
           service: name=haproxy state=stopped
         - name: Start haproxy service
           tags: step4 # Needed at step 4 for mysql