Skip to content
Snippets Groups Projects

Inventory modify

Merged Ing. Klára Moravcová requested to merge inventory-modify into master
6 files
+ 34
32
Compare changes
  • Side-by-side
  • Inline
Files
6
+ 12
12
[all]
[all]
%{ for index,ip in k8s_master_ip ~}
%{ for i, name in k8s_control_name ~}
control${index+1} ansible_host=${ip}
${name} ansible_host=${element(k8s_control_ip, i)}
%{ endfor ~}
%{ endfor ~}
%{ for index,ip in k8s_worker_ip ~}
%{ for i, name in k8s_worker_name ~}
node${index+1} ansible_host=${ip}
${name} ansible_host=${element(k8s_worker_ip, i)}
%{ endfor ~}
%{ endfor ~}
## configure a bastion host if your nodes are not directly reachable
## configure a bastion host if your nodes are not directly reachable
@@ -12,21 +12,21 @@ node${index+1} ansible_host=${ip}
@@ -12,21 +12,21 @@ node${index+1} ansible_host=${ip}
bastion ansible_host=${k8s_bastion_ip} ansible_user=${bastion_ssh_user_name}
bastion ansible_host=${k8s_bastion_ip} ansible_user=${bastion_ssh_user_name}
[kube_control_plane]
[kube_control_plane]
%{ for index,ip in k8s_master_ip ~}
%{ for name in k8s_control_name ~}
control${index+1}
${name}
%{ endfor ~}
%{ endfor ~}
[etcd]
[etcd]
%{ for index,ip in k8s_master_ip ~}
%{ for name in k8s_control_name ~}
control${index+1}
${name}
%{ endfor ~}
%{ endfor ~}
[kube_node]
[kube_node]
%{ for index,ip in k8s_master_ip ~}
%{ for name in k8s_control_name ~}
control${index+1}
${name}
%{ endfor ~}
%{ endfor ~}
%{ for index,ip in k8s_worker_ip ~}
%{ for name in k8s_worker_name ~}
node${index+1}
${name}
%{ endfor ~}
%{ endfor ~}
[calico_rr]
[calico_rr]
Loading