updated ansible templates for single node clusters

This commit is contained in:
2025-07-30 21:59:01 -05:00
parent 48b8548528
commit 05fa4eaa43
9 changed files with 340 additions and 21 deletions

View File

@@ -21,11 +21,13 @@ hosts:
ipv4:
enabled: true
dhcp: true
{% if hostvars[host].boot_mac_address != hostvars[host].install_mac_address %}
- name: {{ hostvars[host].boot_interface }}
type: ethernet
state: down
identifier: mac-address
mac-address: {{ hostvars[host].boot_mac_address }}
{% endif %}
dns-resolver:
config:
server:

View File

@@ -20,9 +20,14 @@ networking:
serviceNetwork:
- {{ hostvars[groups[cluster_group][0]].service_network }}
platform:
{% if hostvars[groups[cluster_group][0]].platform_type == 'none' %}
{{ hostvars[groups['hub_cluster'][0]].platform_type }}: {}
{% endif %}
{% if hostvars[groups[cluster_group][0]].platform_type == 'baremetal' %}
{{ hostvars[groups[cluster_group][0]].platform_type }}:
apiVIP: {{ hostvars[groups[cluster_group][0]].api_address }}
ingressVIP: {{ hostvars[groups[cluster_group][0]].app_address }}
{% endif %}
fips: false
pullSecret: '{{ vault_pull_secret }}'
sshKey: '{{ vault_ssh_key }}'