Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubernetes-infra
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
terraform
modules
kubernetes-infra
Merge requests
!1
Inventory modify
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Inventory modify
inventory-modify
into
master
Overview
0
Commits
3
Pipelines
0
Changes
6
Merged
Ing. Klára Moravcová
requested to merge
inventory-modify
into
master
1 year ago
Overview
0
Commits
3
Pipelines
0
Changes
6
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
0dc5a910
3 commits,
1 year ago
6 files
+
34
−
32
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
ansible_inventory.tmpl
+
12
−
12
Options
[all]
[all]
%{ for i
ndex,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 i
ndex,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