diff options
author | chenshuai@huawei.com <chenshuai@huawei.com> | 2016-01-12 14:47:11 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-01-12 14:47:11 +0000 |
commit | 704043ac8820ced6c1a9ae16cff3e27a4c36ae43 (patch) | |
tree | 61feb0644a79d46c747a2f97d97699723eb4c4c6 /deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml | |
parent | 94035e341ff51daf1b1a5ed297f78b8bcbf71882 (diff) | |
parent | 293b868b24e70ed1440339836f33be87ea05e364 (diff) |
Merge "bugfix: index of haproxy_hosts error in opencontrail webui script"
Diffstat (limited to 'deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml index 515b10e9..6758b8e7 100755 --- a/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml +++ b/deploy/adapters/ansible/roles/open-contrail/tasks/provision/provision-webui.yml @@ -17,14 +17,14 @@ - name: "set first cassandra host address" set_fact: # cassandra_addrs: "'{{ hostvars[item.1]['contrail_address'] }}'" - cassandra_addrs: "'{{ haproxy_hosts[item] }}'" + cassandra_addrs: "'{{ haproxy_hosts[item.1] }}'" with_indexed_items: groups['opencontrail_database'] when: item.0 == 0 - name: "set second or more cassandra host addresses" set_fact: # cassandra_addrs: "{{ cassandra_addrs }}, '{{ hostvars[item.1]['contrail_address'] }}'" - cassandra_addrs: "{{ cassandra_addrs }}, '{{ haproxy_hosts[item] }}'" + cassandra_addrs: "{{ cassandra_addrs }}, '{{ haproxy_hosts[item.1] }}'" with_indexed_items: groups['opencontrail_database'] when: item.0 > 0 |