Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ services:
# - ${HOME}/.ansible/roles/metal-ansible-modules:/root/.ansible/roles/metal-ansible-modules:ro
environment:
- ANSIBLE_CONFIG=/mini-lab/ansible.cfg
- KUBECONFIG=/mini-lab/.kubeconfig
- K8S_AUTH_KUBECONFIG=/mini-lab/.kubeconfig
- CI=${CI}
- DOCKER_HUB_USER=${DOCKER_HUB_USER}
- DOCKER_HUB_TOKEN=${DOCKER_HUB_TOKEN}
Expand Down
14 changes: 12 additions & 2 deletions deploy_partition.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
---
- name: Install python client and generate deployment token
hosts: localhost
connection: local
gather_facts: false
roles:
- name: ansible-common
tags: always
- name: metal-roles/control-plane/roles/metal-python
- name: metal-roles/control-plane/roles/metal-deployment-token

- name: Configure leaves
hosts: leaves
any_errors_fatal: true
Expand Down Expand Up @@ -31,6 +41,8 @@
tags: dhcp
- name: metal-roles/partition/roles/pixiecore
tags: pixiecore
- name: metal-roles/partition/roles/image-cache
tags: image-cache

- name: Deploy metal-core
hosts: leaves
Expand All @@ -52,8 +64,6 @@
tags: always
- name: metal-ansible-modules
tags: always
- name: metal-roles/control-plane/roles/metal-python
tags: metal-python
post_tasks:
- name: Wait for switches to register
command: echo
Expand Down
1 change: 1 addition & 0 deletions inventories/control-plane.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ control-plane:
hosts:
localhost:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
ansible_connection: local
17 changes: 11 additions & 6 deletions inventories/group_vars/all/images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ setup_yaml:
##

# metal_hammer_image_url: https://images.metal-stack.io/metal-hammer/pull-requests/<pr-number-and-title>/metal-hammer-initrd.img.lz4
# metal_api_image_name:
# metal_api_image_tag:
# metal_api_image_name: ghcr.io/metal-stack/metal-api
# metal_api_image_tag: mep-4-network-migration
# metal_apiserver_image_name:
# metal_apiserver_image_tag:
# metal_metalctl_image_name:
Expand All @@ -25,18 +25,23 @@ setup_yaml:
# headscale_image_tag: v0.26.1
# headscale_db_backup_restore_sidecar_image_tag: latest
# headscale_db_backup_restore_sidecar_image_name: ghcr.io/metal-stack/backup-restore-sidecar
# headscale_db_image_tag: 17-alpine
# headscale_db_image_tag: 16-alpine
ipam_db_image_tag: 18.0-alpine
masterdata_db_image_tag: 18.0-alpine
# headscale_db_image_name: postgres
# ...
#

image_cache_sync_image_tag: migrate-to-metal-apiserver
image_cache_sync_image_name: ghcr.io/metal-stack/metal-image-cache-sync

##
## for ansible roles
##

# ansible_common_version:
# metal_roles_version:
# metal_ansible_modules_version:
# ansible_common_version: support-systemd-credentials
metal_roles_version: migrate-metal-image-cache-sync-to-metal-apiserver
metal_ansible_modules_version: v2-modules

##
## helm charts
Expand Down
6 changes: 6 additions & 0 deletions inventories/group_vars/partition/image_cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
image_cache_sync_metal_apiserver_url: "http://v2.api.172.17.0.1.nip.io:8080"
image_cache_sync_excludes:
- "/pull_requests/"
- "/stable/"
image_cache_sync_expiration_grace_period: 100
1 change: 1 addition & 0 deletions inventories/partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ partition:
hosts:
localhost:
ansible_python_interpreter: "{{ ansible_playbook_python }}"
ansible_connection: local
children:
leaves:

Expand Down