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 @@ -36,6 +36,8 @@ services:
environment:
- ANSIBLE_DISPLAY_SKIPPED_HOSTS=${ANSIBLE_DISPLAY_SKIPPED_HOSTS:-false}
- ANSIBLE_INVENTORY=inventories/partition.yaml,clab-mini-lab/ansible-inventory.yml
- 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
21 changes: 21 additions & 0 deletions deploy_partition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,25 @@
pull: true
failed_when: false

- name: Install python client and generate deployment token
hosts: localhost
connection: local
gather_facts: false
pre_tasks:
- name: Wait until the metal-apiserver is running
kubernetes.core.k8s_info:
kind: Deployment
name: metal-apiserver
namespace: "{{ metal_control_plane_namespace }}"
wait: true
wait_sleep: 1
wait_timeout: 600
roles:
- name: ansible-common
tags: always
- name: metal-roles/common/roles/metal-v2-client
- name: metal-roles/common/roles/metal-deployment-token

- name: Deploy pixiecore on leaf01
hosts: leaf01
become: true
Expand All @@ -99,6 +118,8 @@
tags: always
- name: metal-roles/partition/roles/pixiecore
tags: pixiecore
- name: metal-roles/partition/roles/image-cache
tags: image-cache

- name: Deploy monitoring on leaf01
hosts: leaf01
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
5 changes: 4 additions & 1 deletion inventories/group_vars/all/release_vector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,15 @@ metal_stack_release_vectors:
# ...
#

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_roles_version: migrate-metal-image-cache-sync-to-metal-apiserver
# metal_ansible_modules_version:

##
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:
dell_sonic:
leaves:
Expand Down
Loading