From 6646320d745c115e85b123135b52ce24537f9e58 Mon Sep 17 00:00:00 2001 From: Nemo Date: Thu, 23 Aug 2018 12:02:32 +0530 Subject: [PATCH] Adds ZNC --- variables.tf | 3 +++ znc.tf | 21 +++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 znc.tf diff --git a/variables.tf b/variables.tf index 93fde51..f42f0fe 100644 --- a/variables.tf +++ b/variables.tf @@ -82,3 +82,6 @@ variable "root-domain" { description = "root domain for most applications" default = "bb8.fun" } + +variable "znc_pass" {} +variable "znc_user" {} diff --git a/znc.tf b/znc.tf new file mode 100644 index 0000000..6375d01 --- /dev/null +++ b/znc.tf @@ -0,0 +1,21 @@ +module "znc" { + source = "modules/container" + image = "znc:latest" + name = "znc" + + web { + expose = "false" + host = "" + } + + volumes = [{ + container_path = "/znc-data" + host_path = "/mnt/xwing/config/znc" + }] + + ports = [{ + internal = 6697 + external = 6697 + ip = "${var.ips["tun0"]}" + }] +}