Use short names in PVC configs

This commit is contained in:
Joshua Boniface 2020-04-06 13:53:05 -04:00
parent f560f55010
commit f90f8f33da
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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: