aboutsummaryrefslogtreecommitdiff
path: root/terraform/telegraf/conflatorio/main.tf
diff options
context:
space:
mode:
Diffstat (limited to 'terraform/telegraf/conflatorio/main.tf')
-rw-r--r--terraform/telegraf/conflatorio/main.tf24
1 files changed, 10 insertions, 14 deletions
diff --git a/terraform/telegraf/conflatorio/main.tf b/terraform/telegraf/conflatorio/main.tf
index 5d94503..1513610 100644
--- a/terraform/telegraf/conflatorio/main.tf
+++ b/terraform/telegraf/conflatorio/main.tf
@@ -17,21 +17,17 @@ terraform {
}
}
-locals {
- ansible_host = "conflatorio"
- hostname = "conflatorio.vpn.trygvis.io"
-
- influx_url = "https://influxdb.vpn.trygvis.io"
- influx_token = data.sops_file.vault.data["influx_token"]
- influx_organization = "trygvis"
-
- influx_bucket = "telegraf-lhn2ix"
+data "sops_file" "vault" {
+ source_file = "vault.yml"
}
-provider "docker" {
- host = "ssh://${local.hostname}"
-}
+module "telegraf-os" {
+ source = "../telegraf-os"
-data "sops_file" "vault" {
- source_file = "vault.yml"
+ docker_gid = 997
+ hostname = "conflatorio.vpn.trygvis.io"
+ ansible_host = "conflatorio"
+
+ influx_token = data.sops_file.vault.data["influx_token"]
+ influx_bucket = "telegraf-lhn2ix"
}