summaryrefslogtreecommitdiff
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.tf37
1 files changed, 37 insertions, 0 deletions
diff --git a/terraform/telegraf/conflatorio/main.tf b/terraform/telegraf/conflatorio/main.tf
new file mode 100644
index 0000000..5d94503
--- /dev/null
+++ b/terraform/telegraf/conflatorio/main.tf
@@ -0,0 +1,37 @@
+terraform {
+ required_version = "~> 1.3.5"
+
+ required_providers {
+ docker = {
+ source = "kreuzwerker/docker"
+ version = "2.24.0"
+ }
+ sops = {
+ source = "lokkersp/sops"
+ version = "0.6.10"
+ }
+ template = {
+ source = "hashicorp/template"
+ version = "2.2.0"
+ }
+ }
+}
+
+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"
+}
+
+provider "docker" {
+ host = "ssh://${local.hostname}"
+}
+
+data "sops_file" "vault" {
+ source_file = "vault.yml"
+}