From a6a69ade3844baecb40859ca6004c92262d9cd6d Mon Sep 17 00:00:00 2001 From: Mathieu Bultel Date: Fri, 25 Nov 2016 11:46:53 +0100 Subject: Add pacemaker composable upgrade steps This review adds the pacemaker ansible upgrade steps into the pacemaker service manifest. It makes use of the ansible-pacemaker module which for now is at https://github.com/redhat-openstack/ansible-pacemaker Change-Id: I33c798a198046d5f66e6b20f86080a8187dc208b --- puppet/services/pacemaker.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'puppet') diff --git a/puppet/services/pacemaker.yaml b/puppet/services/pacemaker.yaml index a8a9fb99..9c85fcee 100644 --- a/puppet/services/pacemaker.yaml +++ b/puppet/services/pacemaker.yaml @@ -81,6 +81,10 @@ parameters: \[(?[^ ]*)\] (?[^ ]*) (?.*)$/ + PacemakerResources: + type: comma_delimited_list + description: List of resources managed by pacemaker + default: ['rabbitmq','haproxy'] outputs: role_data: @@ -120,3 +124,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} -- cgit 1.2.3-korg