From 10f68252b5660217e3dbd4f0f8e137be44b115c3 Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Wed, 5 Aug 2026 15:15:48 +0200 Subject: [PATCH 1/5] add apiserver url --- inventories/group_vars/all/release_vector.yaml | 2 +- inventories/group_vars/control_plane/metal.yml | 2 +- inventories/group_vars/partition/common.yaml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/inventories/group_vars/all/release_vector.yaml b/inventories/group_vars/all/release_vector.yaml index 0fba64d3..66e0c1c0 100644 --- a/inventories/group_vars/all/release_vector.yaml +++ b/inventories/group_vars/all/release_vector.yaml @@ -38,7 +38,7 @@ metal_stack_release_vectors: ## # ansible_common_version: -# metal_roles_version: pr- +metal_roles_version: pr-506-metal-core-to-v2 # metal_ansible_modules_version: ## diff --git a/inventories/group_vars/control_plane/metal.yml b/inventories/group_vars/control_plane/metal.yml index 23aceab4..207a41d2 100644 --- a/inventories/group_vars/control_plane/metal.yml +++ b/inventories/group_vars/control_plane/metal.yml @@ -30,7 +30,7 @@ metal_api_nsq_tcp_address: nsqd:4150 metal_apiserver_pdb_min_available: 1 metal_apiserver_enabled: true -metal_apiserver_url: http://v2.{{ metal_control_plane_gateway_dns }} +metal_apiserver_url: "{{ metal_partition_metal_apiserver_url }}" metal_apiserver_oidc_discovery_url: https://auth.{{ metal_control_plane_gateway_dns }}/.well-known/openid-configuration metal_apiserver_oidc_end_session_url: "https://auth.{{ metal_control_plane_gateway_dns }}/oidc/v1/end_session" diff --git a/inventories/group_vars/partition/common.yaml b/inventories/group_vars/partition/common.yaml index bb3791fe..0d800035 100644 --- a/inventories/group_vars/partition/common.yaml +++ b/inventories/group_vars/partition/common.yaml @@ -3,6 +3,7 @@ metal_partition_timezone: Europe/Berlin metal_partition_id: mini-lab metal_partition_metal_api_protocol: http +metal_partition_metal_apiserver_url: http://v2.{{ metal_control_plane_gateway_dns }} metal_partition_metal_api_addr: api.{{ metal_control_plane_gateway_dns }} metal_partition_metal_api_port: 80 metal_partition_metal_api_basepath: /metal/ From 994218a86849b4b3b5b9290a5e1064846862a4e4 Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Fri, 21 Aug 2026 09:58:56 +0200 Subject: [PATCH 2/5] roles --- compose.yaml | 1 + inventories/group_vars/all/release_vector.yaml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/compose.yaml b/compose.yaml index 05c4bc5e..f9dae75d 100644 --- a/compose.yaml +++ b/compose.yaml @@ -46,6 +46,7 @@ services: - -ce - | ansible -m metalstack.base.metal_stack_release_vector localhost --extra-vars "@.extra_vars.yaml" + ansible-playbook install_v2_client.yaml ansible-playbook deploy_partition.yaml --extra-vars "@.extra_vars.yaml" metalctl: diff --git a/inventories/group_vars/all/release_vector.yaml b/inventories/group_vars/all/release_vector.yaml index 66e0c1c0..2b74523a 100644 --- a/inventories/group_vars/all/release_vector.yaml +++ b/inventories/group_vars/all/release_vector.yaml @@ -21,8 +21,8 @@ metal_stack_release_vectors: # metal_masterdata_api_image_tag: # metal_console_image_name: # metal_console_image_tag: -# metal_core_image_name: -# metal_core_image_tag: +metal_core_image_tag: migrate-to-v2 +metal_core_image_name: ghcr.io/metal-stack/metal-core # headscale_image_tag: # headscale_db_backup_restore_sidecar_image_tag: # headscale_db_backup_restore_sidecar_image_name: From ff9755d322800ec8b532f06330c0305c00a0edde Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Fri, 21 Aug 2026 09:59:01 +0200 Subject: [PATCH 3/5] roles --- install_v2_client.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 install_v2_client.yaml diff --git a/install_v2_client.yaml b/install_v2_client.yaml new file mode 100644 index 00000000..5a26b402 --- /dev/null +++ b/install_v2_client.yaml @@ -0,0 +1,7 @@ +--- +- name: Install python client + hosts: localhost + connection: local + gather_facts: false + roles: + - name: metal-roles/common/roles/metal-v2-client From bcfdea7d49b5c5bc69dde1be1fd37d4ab4305443 Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Fri, 21 Aug 2026 11:55:20 +0200 Subject: [PATCH 4/5] deployment token --- deploy_partition.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy_partition.yaml b/deploy_partition.yaml index 6c8d2a89..4ae381fd 100644 --- a/deploy_partition.yaml +++ b/deploy_partition.yaml @@ -70,7 +70,6 @@ roles: - name: ansible-common - name: metal-roles/partition/roles/pixiecore - - name: metal-roles/common/roles/metal-deployment-token - name: metal-roles/partition/roles/image-cache when: deploy_partition_image_cache @@ -95,6 +94,7 @@ roles: - name: ansible-common tags: always + - name: metal-roles/common/roles/metal-deployment-token - name: metal-roles/partition/roles/metal-core tags: metal-core vars: @@ -113,6 +113,7 @@ roles: - name: ansible-common tags: always + - name: metal-roles/common/roles/metal-deployment-token - name: metal-roles/partition/roles/metal-core tags: metal-core From f494ee5c8faa39995fd3d495b6f284b84b301188 Mon Sep 17 00:00:00 2001 From: Ilja Rotar Date: Fri, 21 Aug 2026 12:53:28 +0200 Subject: [PATCH 5/5] review --- deploy_partition.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deploy_partition.yaml b/deploy_partition.yaml index 4ae381fd..ac0bd8b4 100644 --- a/deploy_partition.yaml +++ b/deploy_partition.yaml @@ -62,7 +62,6 @@ roles: - name: ansible-common - - name: metal-roles/common/roles/metal-v2-client - name: metal-roles/common/roles/metal-deployment-token - name: Deploy mgmt-server components on leaf01 @@ -70,6 +69,8 @@ roles: - name: ansible-common - name: metal-roles/partition/roles/pixiecore + - name: metal-roles/common/roles/metal-deployment-token + when: deploy_partition_image_cache - name: metal-roles/partition/roles/image-cache when: deploy_partition_image_cache