aboutsummaryrefslogtreecommitdiff
path: root/terraform/telegraf/conflatorio/main.tf
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2023-10-30 15:09:26 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2023-10-31 12:15:56 +0100
commit3a7734b21b69ae533fa069f0dfa8d7e98222d159 (patch)
tree30f9fd2e575b30e2f0b529e71bab738a2565f9d7 /terraform/telegraf/conflatorio/main.tf
parentadde3d92ecc77a9d1583a5c08d86216a0e1bc20d (diff)
downloadinfra-3a7734b21b69ae533fa069f0dfa8d7e98222d159.tar.gz
infra-3a7734b21b69ae533fa069f0dfa8d7e98222d159.tar.bz2
infra-3a7734b21b69ae533fa069f0dfa8d7e98222d159.tar.xz
infra-3a7734b21b69ae533fa069f0dfa8d7e98222d159.zip
conflatorio/telegraf
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"
+}