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" {
24
24
}
25
25
},
26
26
{
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
29
29
groups = ["control", "{{ cluster_name }}_control"],
30
30
facts = {
31
31
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" {
399
399
ansible_init_coll_{{ loop.index0 }}_source = " {{ collection.source }}"
400
400
{% endif %}
401
401
{% 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
403
403
k3s_token = " {{ k3s_token }}"
404
404
}
405
405
}
@@ -412,11 +412,9 @@ resource "openstack_compute_instance_v2" "control" {
412
412
{% else %}
413
413
flavor_id = " {{ control_flavor }}"
414
414
{% endif %}
415
- for_each = toset([ " control" ])
416
415
417
416
network {
418
417
port = openstack_networking_port_v2.control.id
419
- access_network = true
420
418
}
421
419
422
420
{% if cluster_storage_network is defined %}
@@ -566,7 +564,7 @@ resource "openstack_compute_instance_v2" "{{ partition.name }}" {
566
564
ansible_init_coll_{{ loop.index0 }}_source = " {{ collection.source }}"
567
565
{% endif %}
568
566
{% 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
570
568
k3s_token = " {{ k3s_token }}"
571
569
}
572
570
}
You can’t perform that action at this time.
0 commit comments