diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-02-25 23:05:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-02-25 23:05:13 +0000 |
| commit | 6fa1ce127ded1c62e3c8326c27ff05fa8d299ba7 (patch) | |
| tree | 38425a2949b63fa85f7c8ef7957a8af7b4a6323f | |
| parent | c79174012c0eed039edd0a87ba344e9dab113f2a (diff) | |
| parent | 097e259ee90fc2aa829945a13e9397ca5090e785 (diff) | |
| download | kolla-6fa1ce127ded1c62e3c8326c27ff05fa8d299ba7.tar.gz kolla-6fa1ce127ded1c62e3c8326c27ff05fa8d299ba7.zip | |
Merge "HAProxy and Keepalived upgrade"
| -rw-r--r-- | ansible/roles/haproxy/tasks/upgrade.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ansible/roles/haproxy/tasks/upgrade.yml b/ansible/roles/haproxy/tasks/upgrade.yml index ed97d539c..c4670a5aa 100644 --- a/ansible/roles/haproxy/tasks/upgrade.yml +++ b/ansible/roles/haproxy/tasks/upgrade.yml @@ -1 +1,19 @@ --- +- include: config.yml + +- set_fact: secondary_addresses={{ hostvars[inventory_hostname]['ansible_' + api_interface].get('ipv4_secondaries', []) | map(attribute='address') | list }} + +- name: Stopping all slave keepalived containers + kolla_docker: + action: "stop_container" + common_options: "{{ docker_common_options }}" + name: "keepalived" + when: kolla_internal_address not in secondary_addresses + +# Upgrading master keepalived and haproxy +- include: start.yml + when: kolla_internal_address in secondary_addresses + +# Upgrading slave keepalived and haproxy +- include: start.yml + when: kolla_internal_address not in secondary_addresses |
