Skip to content
Snippets Groups Projects
Commit ad745bf1 authored by Zuul's avatar Zuul Committed by Gerrit Code Review
Browse files

Merge "hacluster: Use nodename to align with nova service names"

parents d0387576 e1ae8223
No related branches found
No related tags found
No related merge requests found
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
{{ kolla_container_engine }} exec {{ pacemaker_service.container_name }} {{ kolla_container_engine }} exec {{ pacemaker_service.container_name }}
cibadmin --modify --scope resources -X ' cibadmin --modify --scope resources -X '
<resources> <resources>
<primitive id="{{ ansible_facts.hostname }}" class="ocf" provider="pacemaker" type="remote"> <primitive id="{{ ansible_facts.nodename }}" class="ocf" provider="pacemaker" type="remote">
<instance_attributes id="{{ ansible_facts.hostname }}-instance_attributes"> <instance_attributes id="{{ ansible_facts.nodename }}-instance_attributes">
<nvpair id="{{ ansible_facts.hostname }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/> <nvpair id="{{ ansible_facts.nodename }}-instance_attributes-server" name="server" value="{{ 'api' | kolla_address }}"/>
</instance_attributes> </instance_attributes>
<operations> <operations>
<op id="{{ ansible_facts.hostname }}-monitor" name="monitor" interval="60" timeout="30"/> <op id="{{ ansible_facts.nodename }}-monitor" name="monitor" interval="60" timeout="30"/>
</operations> </operations>
</primitive> </primitive>
</resources> </resources>
......
...@@ -13,7 +13,7 @@ nodelist { ...@@ -13,7 +13,7 @@ nodelist {
{% for host in groups['hacluster'] | sort %} {% for host in groups['hacluster'] | sort %}
node { node {
ring0_addr: {{ 'api' | kolla_address(host) }} ring0_addr: {{ 'api' | kolla_address(host) }}
name: {{ hostvars[host].ansible_facts.hostname }} name: {{ hostvars[host].ansible_facts.nodename }}
nodeid: {{ loop.index }} nodeid: {{ loop.index }}
} }
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment