File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
ansible/roles/cluster_infra/templates Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ output "cluster_nodes" {
2424 }
2525 },
2626 {
27- name = openstack_compute_instance_v2.control["control"] .name
28- ip = openstack_compute_instance_v2.control["control"] .network[0].fixed_ip_v4
27+ name = openstack_compute_instance_v2.control.name
28+ ip = openstack_compute_instance_v2.control.network[0].fixed_ip_v4
2929 groups = ["control", "{{ cluster_name }}_control"],
3030 facts = {
3131 openstack_project_id = data.openstack_identity_auth_scope_v3.scope.project_id
Original file line number Diff line number Diff line change @@ -399,7 +399,7 @@ resource "openstack_compute_instance_v2" "login" {
399399 ansible_init_coll_{{ loop.index0 }}_source = " {{ collection.source }}"
400400 {% endif %}
401401 {% endfor %}
402- k3s_server = [for n in openstack_compute_instance_v2.control[ " control " ] .network: n.fixed_ip_v4 if n.access_network] [0]
402+ k3s_server = openstack_compute_instance_v2.control.network[0].fixed_ip_v4
403403 k3s_token = " {{ k3s_token }}"
404404 }
405405}
@@ -412,11 +412,9 @@ resource "openstack_compute_instance_v2" "control" {
412412 {% else %}
413413 flavor_id = " {{ control_flavor }}"
414414 {% endif %}
415- for_each = toset([ " control" ])
416415
417416 network {
418417 port = openstack_networking_port_v2.control.id
419- access_network = true
420418 }
421419
422420 {% if cluster_storage_network is defined %}
@@ -566,7 +564,7 @@ resource "openstack_compute_instance_v2" "{{ partition.name }}" {
566564 ansible_init_coll_{{ loop.index0 }}_source = " {{ collection.source }}"
567565 {% endif %}
568566 {% endfor %}
569- k3s_server = [for n in openstack_compute_instance_v2.control[ " control " ] .network: n.fixed_ip_v4 if n.access_network] [0]
567+ k3s_server = openstack_compute_instance_v2.control.network[0].fixed_ip_v4
570568 k3s_token = " {{ k3s_token }}"
571569 }
572570}
You can’t perform that action at this time.
0 commit comments