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"]}" + }] +}