From a08132ca8cd53892ec66cdbd942be1cab282dea0 Mon Sep 17 00:00:00 2001 From: Nemo Date: Fri, 30 Mar 2018 23:48:26 +0530 Subject: [PATCH] terraform file uploads can't be executed - Uses a custom entrypoint instead --- main.tf | 4 ++-- timemachine/main.tf | 1 + variables.tf | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/main.tf b/main.tf index 0e393e1..97cb654 100644 --- a/main.tf +++ b/main.tf @@ -29,9 +29,9 @@ module "timemachine" { source = "timemachine" ips = "${var.ips}" username-1 = "vikalp" - password-1 = "vikalp" + password-1 = "${var.timemachine-password-1}" username-2 = "rishav" - password-2 = "vikalp" + password-2 = "${var.timemachine-password-2}" } module "gitea" { diff --git a/timemachine/main.tf b/timemachine/main.tf index 3d7cdab..2fff2c3 100644 --- a/timemachine/main.tf +++ b/timemachine/main.tf @@ -34,6 +34,7 @@ resource docker_container "timemachine" { } entrypoint = [ + "/bin/sh", "/entrypoint-custom.sh", ] diff --git a/variables.tf b/variables.tf index 1a5b9bf..f0e9da4 100644 --- a/variables.tf +++ b/variables.tf @@ -67,3 +67,6 @@ variable "traefik-common-labels" { "traefik.frontend.headers.browserXSSFilter" = "true" } } + +variable "timemachine-password-2" {} +variable "timemachine-password-1" {}