Files
base-infra/k3s/config.ini
Felix Nehrke 9c19a21273 Simplify configuration by moving all the vars into config.ini
The navigation through a bunch of config files, all with just a few
lines in it is cumbersome. This change moves all the configuration into
a centralized `config.ini` that way it's easier for me to get a quick
overview of the setup. The `config.ini` acts as another inventory and is
therefore references as such by the ansible.cfg. The `inventory.ini`
(which is generated by terraform in the provisioning-step) is not
affected by this change.
2025-09-19 16:02:27 +02:00

17 lines
518 B
INI

[all:vars]
k8s_api_endpoint = "{{ hostvars[groups['server'][0]]['ansible_host'] | default(groups['server'][0]) }}"
[k3s_cluster:vars]
ansible_user = root
# note the space between the IPs!
dns_servers = 8.8.8.8 8.8.4.4
[agent:vars]
ansible_ssh_common_args = -o StrictHostKeyChecking=accept-new -o ProxyCommand="ssh -p 1022 -W %h:%p -q root@{{ k8s_api_endpoint }}"
k3s_version = v1.31.6+k3s1
[server:vars]
ansible_ssh_common_args = '-o StrictHostKeyChecking=accept-new'
ansible_port = 1022
k3s_version = v1.31.6+k3s1