File tree Expand file tree Collapse file tree 7 files changed +18
-2
lines changed
inventories/group_vars/control-plane Expand file tree Collapse file tree 7 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ clab-mini-lab
7
7
ansible-common
8
8
metal-hammer *
9
9
requirements.yaml
10
+ .extra_vars.yaml
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ KUBECONFIG := $(shell pwd)/.kubeconfig
9
9
# Default values
10
10
DOCKER_COMPOSE_OVERRIDE =
11
11
12
+ # extra vars can be used by projects that built on the mini-lab, which want to override default configuration
13
+ ANSIBLE_EXTRA_VARS_FILE := $(or $(ANSIBLE_EXTRA_VARS_FILE ) ,)
14
+
12
15
MINI_LAB_FLAVOR := $(or $(MINI_LAB_FLAVOR ) ,default)
13
16
MINI_LAB_VM_IMAGE := $(or $(MINI_LAB_VM_IMAGE ) ,ghcr.io/metal-stack/mini-lab-vms:latest)
14
17
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ services:
38
38
ansible-galaxy install --ignore-errors -r requirements.yaml
39
39
ansible-playbook \
40
40
-i inventories/control-plane.yaml \
41
- deploy_control_plane.yaml
41
+ deploy_control_plane.yaml --extra-vars "@.extra_vars.yaml"
42
42
43
43
partition :
44
44
image : ghcr.io/metal-stack/metal-deployment-base:${DEPLOYMENT_BASE_IMAGE_TAG}
@@ -73,7 +73,7 @@ services:
73
73
ansible-playbook \
74
74
-i inventories/partition.yaml \
75
75
-i clab-mini-lab/ansible-inventory.yml \
76
- deploy_partition.yaml
76
+ deploy_partition.yaml --extra-vars "@.extra_vars.yaml"
77
77
78
78
metalctl :
79
79
image : ghcr.io/metal-stack/metalctl:${METALCTL_IMAGE_TAG}
Original file line number Diff line number Diff line change @@ -13,6 +13,11 @@ RELEASE_YAML=$(curl -s https://raw.githubusercontent.com/metal-stack/releases/${
13
13
METALCTL_IMAGE_TAG=$( yq_shell " echo \" ${RELEASE_YAML} \" | yq r - docker-images.metal-stack.control-plane.metalctl.tag" )
14
14
DEPLOYMENT_BASE_IMAGE_TAG=$( yq_shell " echo \" ${RELEASE_YAML} \" | yq r - docker-images.metal-stack.generic.deployment-base.tag" )
15
15
16
+ echo " {}" > .extra_vars.yaml
17
+ if [ ! -z ${ANSIBLE_EXTRA_VARS_FILE} ]; then
18
+ cat ${ANSIBLE_EXTRA_VARS_FILE} > .extra_vars.yaml || echo " {}" > .extra_vars.yaml
19
+ fi
20
+
16
21
cat << EOF > .env
17
22
METALCTL_IMAGE_TAG=${METALCTL_IMAGE_TAG}
18
23
DEPLOYMENT_BASE_IMAGE_TAG=${DEPLOYMENT_BASE_IMAGE_TAG}
Original file line number Diff line number Diff line change @@ -73,6 +73,9 @@ metal_api_networks:
73
73
vrf : 104009
74
74
prefixes :
75
75
- 100.255.254.0/24
76
+ labels :
77
+ network.metal-stack.io/default : " "
78
+ network.metal-stack.io/default-external : " "
76
79
- id : underlay-mini-lab
77
80
name : " Underlay Network"
78
81
description : " Underlay Network for mini-lab"
Original file line number Diff line number Diff line change 1
1
---
2
2
ingress_http_port : 8080
3
3
ingress_https_port : 4443
4
+
5
+ ingress_additional_config : {}
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ controller:
29
29
metrics :
30
30
enabled : false
31
31
32
+ config : {{ ingress_additional_config | to_json }}
33
+
32
34
tcp :
33
35
4161 : " {{ metal_control_plane_namespace }}/nsq-lookupd:4161"
34
36
4150 : " {{ metal_control_plane_namespace }}/nsqd:4150"
You can’t perform that action at this time.
0 commit comments