Merge "Add pacemaker composable upgrade steps"
authorJenkins <jenkins@review.openstack.org>
Fri, 10 Feb 2017 15:26:46 +0000 (15:26 +0000)
committerGerrit Code Review <review@openstack.org>
Fri, 10 Feb 2017 15:26:46 +0000 (15:26 +0000)
puppet/services/pacemaker.yaml

index c47229f..2b1071a 100644 (file)
@@ -87,6 +87,10 @@ parameters:
         \[(?<pid>[^ ]*)\]
         (?<host>[^ ]*)
         (?<message>.*)$/
+  PacemakerResources:
+    type: comma_delimited_list
+    description: List of resources managed by pacemaker
+    default: ['rabbitmq','haproxy']
 
 outputs:
   role_data:
@@ -127,3 +131,14 @@ outputs:
         tripleo::profile::base::pacemaker::remote_authkey: {get_param: PacemakerRemoteAuthkey}
       step_config: |
         include ::tripleo::profile::base::pacemaker
+      upgrade_tasks:
+        - name: Stop pacemaker cluster
+          tags: step1
+          pacemaker_cluster: state=offline
+        - name: Start pacemaker cluster
+          tags: step4
+          pacemaker_cluster: state=online
+        - name: Check pacemaker resource
+          tags: step4
+          pacemaker_resource: state=started resource={{item}} check_mode=true wait_for_resource=true timeout=200
+          with_items: {get_param: PacemakerResources}