Restructure inventory

This commit is contained in:
Emil Dabrowski 2023-01-10 21:59:41 +01:00
parent 739da8ac90
commit cfcd2ca654
1 changed files with 12 additions and 15 deletions

View File

@ -1,26 +1,23 @@
all: all:
children: children:
gerar: gerar:
hosts: children:
matthew.gerar.jilits.se: control_planes:
mark.gerar.jilits.se: hosts:
luke.gerar.jilits.se: matthew.gerar.jilits.se:
vars:
is_control_plane: true
nodes:
hosts:
mark.gerar.jilits.se:
luke.gerar.jilits.se:
vars:
is_control_plane: false
vars: vars:
ansible_user: servant ansible_user: servant
cluster_name: "gerar" cluster_name: "gerar"
k8s_version: 1.26 k8s_version: 1.26
pod_network_cidr: "10.254.0.0/16" pod_network_cidr: "10.254.0.0/16"
service_cidr: "10.255.0.0/16" service_cidr: "10.255.0.0/16"
control_planes:
hosts:
matthew.gerar.jilits.se:
vars:
is_control_plane: true
nodes:
hosts:
mark.gerar.jilits.se:
luke.gerar.jilits.se:
vars:
is_control_plane: false
vars: vars:
kubeadmin_config: /etc/kubernetes/admin.conf kubeadmin_config: /etc/kubernetes/admin.conf