From f99cedbc50ad219e46fdafde0024b96ea674f432 Mon Sep 17 00:00:00 2001 From: rblundon Date: Sun, 23 Mar 2025 23:37:22 -0500 Subject: [PATCH] fix final templates --- 10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 | 2 +- 10-sno-hub-cluster/04-matchbox/templates/provider.tf.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 b/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 index f1acc68..2626c08 100644 --- a/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 +++ b/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 @@ -8,7 +8,7 @@ resource "matchbox_profile" "openshift-agent-install" { args = [ "initrd=initrd", - "coreos.live.rootfs_url={{ hostvars['matchbox'].http_endpoint }}/assets/{{ hostvars[groups['hub-cluster'][0]].cluster_name }}/agent.x86_64-rootfs.img", + "coreos.live.rootfs_url={{ hostvars[groups['matchbox'][0]].http_endpoint }}/assets/{{ hostvars[groups['hub-cluster'][0]].cluster_name }}/agent.x86_64-rootfs.img", "rw", "ignition.firstboot", "ignition.platform.id=metal", diff --git a/10-sno-hub-cluster/04-matchbox/templates/provider.tf.j2 b/10-sno-hub-cluster/04-matchbox/templates/provider.tf.j2 index 3b46e0a..2c6c8b8 100644 --- a/10-sno-hub-cluster/04-matchbox/templates/provider.tf.j2 +++ b/10-sno-hub-cluster/04-matchbox/templates/provider.tf.j2 @@ -1,6 +1,6 @@ // Configure the matchbox provider provider "matchbox" { - endpoint = "{{ hostvars['matchbox'].rpc_endpoint }}" + endpoint = "{{ hostvars[groups['matchbox'][0]].rpc_endpoint }}" client_cert = file("/etc/matchbox/client.crt") client_key = file("/etc/matchbox/client.key") ca = file("/etc/matchbox/ca.crt")