2026-03-14 20:43:35 +01:00
|
|
|
# terraform/templates/inventory.yml.tftpl
|
|
|
|
|
# Auto-generated by Terraform - DO NOT EDIT
|
2026-03-14 22:17:49 +01:00
|
|
|
|
|
|
|
|
[bastion]
|
2026-03-14 22:24:22 +01:00
|
|
|
${bastion.name} ansible_host="${bastion.default_ipv4_address}"
|
2026-03-14 22:17:49 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
[test_server]
|
2026-03-14 20:43:35 +01:00
|
|
|
%{ for idx, server in galera_servers ~}
|
2026-03-14 22:24:22 +01:00
|
|
|
${server.name} ansible_host="${server.default_ipv4_address}"
|
2026-03-14 22:17:49 +01:00
|
|
|
%{ endfor ~}
|
|
|
|
|
|
2026-03-14 22:24:22 +01:00
|
|
|
[all:vars]
|
|
|
|
|
ansible_connection=ssh
|
|
|
|
|
ansible_user=clusteruser
|
|
|
|
|
ansible_ssh_pass=password
|
|
|
|
|
|
2026-03-14 22:17:49 +01:00
|
|
|
[test_server:vars]
|
2026-03-15 01:28:13 +01:00
|
|
|
ansible_ssh_common_args='-o ControlMaster=no -o ProxyCommand="ssh -i /root/.ssh/ansible_key -W %h:%p -q clusteruser@${bastion.default_ipv4_address}"'
|