From 08b38ec7fb0cd54751217d8aead10920450439c6 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Mon, 18 Jan 2021 14:18:21 +1100 Subject: [PATCH] DCD-1190: Add supplied properties to the template. --- roles/bitbucket_config/defaults/main.yaml | 1 + roles/bitbucket_config/templates/bitbucket.properties.j2 | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/bitbucket_config/defaults/main.yaml b/roles/bitbucket_config/defaults/main.yaml index 9790c09..9eccfb1 100644 --- a/roles/bitbucket_config/defaults/main.yaml +++ b/roles/bitbucket_config/defaults/main.yaml @@ -1,3 +1,4 @@ --- atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}" +atl_bitbucket_properties: "{{ lookup('env', 'ATL_BITBUCKET_PROPERTIES') }}" diff --git a/roles/bitbucket_config/templates/bitbucket.properties.j2 b/roles/bitbucket_config/templates/bitbucket.properties.j2 index 444855f..13306e2 100644 --- a/roles/bitbucket_config/templates/bitbucket.properties.j2 +++ b/roles/bitbucket_config/templates/bitbucket.properties.j2 @@ -1,4 +1,4 @@ -# Created by Ansible +# Created by Ansible role `bitbucket_config` jdbc.driver={{ atl_db_driver }} jdbc.url={{ atl_jdbc_url }} jdbc.user={{ atl_jdbc_user }} @@ -34,3 +34,6 @@ server.scheme=http server.proxy-port=80 {% endif %} +{% if atl_bitbucket_properties is defined $} +{{ atl_bitbucket_properties }} +{% endif %}