Skip to content

Commit

Permalink
update hosts file location
Browse files Browse the repository at this point in the history
  • Loading branch information
soerenschneider committed Sep 7, 2024
1 parent 251d275 commit 01dd7de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions envs/vserver-2.dd.soeren.cloud/.terraform.lock.hcl

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions envs/vserver-2.dd.soeren.cloud/tf_locals.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
locals {
hosts_file = "~/src/gitlab/ansible/inventory/prod/group_vars/all/hosts.yml"
hosts_file = "~/src/github/ansible-inventory-prod/group_vars/all/hosts.yml"
hosts_yaml = file(local.hosts_file)
hosts_data = try(yamldecode(local.hosts_yaml), [])

Expand All @@ -26,4 +26,4 @@ locals {
mac_domains = { for domain, val in local.domains :
domain => merge(val, { "mac" = lookup(val, "mac", null) != null ? val["mac"] : lookup(local.hosts_macs, domain, null) })
}
}
}

0 comments on commit 01dd7de

Please sign in to comment.