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