mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-1190: Expect a space-delimited list of properties from the quickstart.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
---
|
||||
|
||||
atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}"
|
||||
atl_bitbucket_properties: "{{ lookup('env', 'ATL_BITBUCKET_PROPERTIES') }}"
|
||||
atl_bitbucket_properties_raw: "{{ lookup('env', 'ATL_BITBUCKET_PROPERTIES') }}"
|
||||
atl_bitbucket_properties: "{{ atl_bitbucket_properties_raw.split(' ') | reject('equalto', '') | list }}"
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
atl_jdbc_user: 'bb_db_user'
|
||||
atl_jdbc_password: 'molecule_password'
|
||||
|
||||
atl_bitbucket_properties_raw: "key1=va1 key2=val2 key3=val3"
|
||||
|
||||
roles:
|
||||
- role: linux_common
|
||||
- role: product_common
|
||||
|
||||
@@ -14,3 +14,8 @@ def test_config_file(host):
|
||||
assert f.contains("jdbc.driver=org.postgresql.Driver")
|
||||
assert f.contains("jdbc.user=bb_db_user")
|
||||
assert f.contains("jdbc.password=molecule_password")
|
||||
|
||||
assert f.contains("key1=val1")
|
||||
assert f.contains("key2=val2")
|
||||
assert f.contains("key3=val3")
|
||||
|
||||
|
||||
@@ -34,6 +34,6 @@ server.scheme=http
|
||||
server.proxy-port=80
|
||||
{% endif %}
|
||||
|
||||
{% if atl_bitbucket_properties is defined %}
|
||||
{{ atl_bitbucket_properties }}
|
||||
{% endif %}
|
||||
{% for prop in atl_bitbucket_properties %}
|
||||
{{ prop }}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user