ansble-terraform-jsonnet/services/inventory.libsonnet

14 lines
299 B
Plaintext
Raw Normal View History

2021-10-12 00:13:21 +02:00
local servers = import "../config/servers.libsonnet";
{
all: {
hosts: {
[s]: servers[s] + {
ansible_host: servers[s].networking.publicDomain,
ansible_user: "root"
}
for s in std.objectFields(servers)
}
}
}