Use short names in PVC configs

This commit is contained in:
Joshua Boniface 2023-09-01 15:42:23 -04:00
parent 157c56fd46
commit c35c58389d
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: