Skip to content
Snippets Groups Projects
Commit 8766b361 authored by Jan Jungnickel's avatar Jan Jungnickel
Browse files

Make path to generated inventory configurable

parent b3745f26
No related branches found
No related tags found
No related merge requests found
......@@ -181,7 +181,7 @@ data "template_file" "inventory" {
resource "null_resource" "inventories" {
provisioner "local-exec" {
command = "echo '${data.template_file.inventory.rendered}' > ../../../inventory/hosts"
command = "echo '${data.template_file.inventory.rendered}' > ${var.inventory_file}"
}
triggers {
......
......@@ -31,3 +31,5 @@ default_tags = {
# Env = "devtest"
# Product = "kubernetes"
}
inventory_file = "../../../inventory/hosts"
......@@ -103,3 +103,7 @@ variable "default_tags" {
description = "Default tags for all resources"
type = "map"
}
variable "inventory_file" {
description = "Where to store the generated inventory file"
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment