From 988e7d52d345a38515b2b8cbb8b932e4796696e0 Mon Sep 17 00:00:00 2001 From: rblundon Date: Mon, 12 May 2025 15:29:42 -0500 Subject: [PATCH] more files --- .../10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2 | 2 +- .../04-matchbox/templates/profiles.tf.j2 | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/infra-config/10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2 b/infra-config/10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2 index 0889314..ae7ef1b 100644 --- a/infra-config/10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2 +++ b/infra-config/10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2 @@ -1,5 +1,5 @@ // Matcher group for OCP Internal machines -resource "matchbox_group" "{{ hostvars[groups['hub-cluster'][0]].cluster_name }}" { +resource "matchbox_group" "{{ hostvars[groups['hub_cluster'][0]].cluster_name }}" { name = "{{ hostvars['ocp-hub'].hostname }}" # Physical Server profile = matchbox_profile.openshift-agent-install.name selector = { diff --git a/infra-config/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 b/infra-config/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 index 2626c08..5e54f8e 100644 --- a/infra-config/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 +++ b/infra-config/10-sno-hub-cluster/04-matchbox/templates/profiles.tf.j2 @@ -1,14 +1,14 @@ // Fedora CoreOS profile resource "matchbox_profile" "openshift-agent-install" { - name = "{{ hostvars[groups['hub-cluster'][0]].cluster_name }}" - kernel = "/assets/{{ hostvars[groups['hub-cluster'][0]].cluster_name }}/agent.x86_64-vmlinuz" + name = "{{ hostvars[groups['hub_cluster'][0]].cluster_name }}" + kernel = "/assets/{{ hostvars[groups['hub_cluster'][0]].cluster_name }}/agent.x86_64-vmlinuz" initrd = [ - "--name initrd /assets/{{ hostvars[groups['hub-cluster'][0]].cluster_name }}/agent.x86_64-initrd.img" + "--name initrd /assets/{{ hostvars[groups['hub_cluster'][0]].cluster_name }}/agent.x86_64-initrd.img" ] args = [ "initrd=initrd", - "coreos.live.rootfs_url={{ hostvars[groups['matchbox'][0]].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",