diff options
author | Jenkins <jenkins@review.openstack.org> | 2017-02-10 15:26:46 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2017-02-10 15:26:46 +0000 |
commit | f2d5f8a5c0c8a562cc27908ee775e3add95e9ea3 (patch) | |
tree | 841f3735c2a2d05a9a7b7b2afd0304f99e8b9589 | |
parent | c505fad72b78a9fe862e0b4d3c8e0d11d9926fcd (diff) | |
parent | a6a69ade3844baecb40859ca6004c92262d9cd6d (diff) |
Merge "Add pacemaker composable upgrade steps"
-rw-r--r-- | puppet/services/pacemaker.yaml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/puppet/services/pacemaker.yaml b/puppet/services/pacemaker.yaml index c47229f1..2b1071a3 100644 --- a/puppet/services/pacemaker.yaml +++ b/puppet/services/pacemaker.yaml @@ -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} |