From 35e7af591f49e07ea341fcc86dbb08328320c781 Mon Sep 17 00:00:00 2001
From: Maarten de Waard <mrtndwrd@gmail.com>
Date: Mon, 4 Mar 2019 10:40:54 +0100
Subject: [PATCH] set acmeStaging variable in helmfiles

---
 ansible/group_vars/cluster/settings.yml.example          | 1 +
 ansible/roles/configure_helmfile/templates/local.yaml.j2 | 2 ++
 test/ci-bootstrap.py                                     | 1 +
 3 files changed, 4 insertions(+)

diff --git a/ansible/group_vars/cluster/settings.yml.example b/ansible/group_vars/cluster/settings.yml.example
index 57f70bd52..2006549e1 100644
--- a/ansible/group_vars/cluster/settings.yml.example
+++ b/ansible/group_vars/cluster/settings.yml.example
@@ -7,3 +7,4 @@ admin_email: "admin@example.com"
 # Label of this deployment.
 release_name: "test"
 keycloak_password: "{{ lookup('password', './secrets/keycloak_admin_password') }}"
+acme_staging: "true"
diff --git a/ansible/roles/configure_helmfile/templates/local.yaml.j2 b/ansible/roles/configure_helmfile/templates/local.yaml.j2
index 74cb2fd20..b598f2441 100644
--- a/ansible/roles/configure_helmfile/templates/local.yaml.j2
+++ b/ansible/roles/configure_helmfile/templates/local.yaml.j2
@@ -7,3 +7,5 @@ adminEmail: "{{ admin_email }}"
 # A label for the application releases. If you have multiple deployments
 # this allows you to distinguish them.
 releaseName: "{{ release_name }}"
+# Use Let's Encrypt staging server. Set this to `"false"` to use the live server
+acmeStaging: "{{ acme_staging }}"
diff --git a/test/ci-bootstrap.py b/test/ci-bootstrap.py
index 176b868f8..2372188f2 100755
--- a/test/ci-bootstrap.py
+++ b/test/ci-bootstrap.py
@@ -177,6 +177,7 @@ if __name__ == "__main__":
     settings['ip_address'] = ip
     settings['domain'] = name + '.ci.openappstack.net'
     settings['admin_email'] = "admin@{0}".format(settings['domain'])
+    settings['acme_staging'] = "true"
 
     if not os.path.exists('./group_vars'):
         os.mkdir('./group_vars')
-- 
GitLab