Use short names in PVC configs
This commit is contained in:
parent
157c56fd46
commit
c35c58389d
|
@ -5,7 +5,7 @@ pvc:
|
||||||
debug: False
|
debug: False
|
||||||
coordinators:
|
coordinators:
|
||||||
{% for node in pvc_nodes if node.is_coordinator %}
|
{% for node in pvc_nodes if node.is_coordinator %}
|
||||||
- {{ node.hostname }}
|
- {{ node.hostname.split('.')[0] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
# api: Configuration of the API listener
|
# api: Configuration of the API listener
|
||||||
api:
|
api:
|
||||||
|
@ -61,7 +61,7 @@ pvc:
|
||||||
# uses the list of coordinators
|
# uses the list of coordinators
|
||||||
storage_hosts:
|
storage_hosts:
|
||||||
{% for node in pvc_nodes if node.is_coordinator %}
|
{% for node in pvc_nodes if node.is_coordinator %}
|
||||||
- {{ node.hostname }}
|
- {{ node.hostname.split('.')[0] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
# storage_domain: The storage domain name, concatenated with the coordinators list names
|
# storage_domain: The storage domain name, concatenated with the coordinators list names
|
||||||
# to form monitor access strings
|
# to form monitor access strings
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
# pvcnoded configuration
|
# pvcnoded configuration
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
pvc:
|
pvc:
|
||||||
node: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.hostname }}{% endfor %}
|
node: {% for node in pvc_nodes if node.hostname == inventory_hostname %}{{ node.hostname.split('.')[0] }}{% endfor %}
|
||||||
|
|
||||||
debug: False
|
debug: False
|
||||||
functions:
|
functions:
|
||||||
|
@ -13,7 +13,7 @@ pvc:
|
||||||
cluster:
|
cluster:
|
||||||
coordinators:
|
coordinators:
|
||||||
{% for node in pvc_nodes if node.is_coordinator %}
|
{% for node in pvc_nodes if node.is_coordinator %}
|
||||||
- {{ node.hostname }}
|
- {{ node.hostname.split('.')[0] }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
networks:
|
networks:
|
||||||
upstream:
|
upstream:
|
||||||
|
|
Loading…
Reference in New Issue