add group-based variables
This commit is contained in:
8
10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2
Normal file
8
10-sno-hub-cluster/04-matchbox/templates/groups.tf.j2
Normal file
@@ -0,0 +1,8 @@
|
||||
// Matcher group for OCP Internal machines
|
||||
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 = {
|
||||
mac = "{{ hostvars['ocp-hub'].mac_address }}" # PXE boots and installs to 10GbE NIC
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user