Merged in DCD-1190-enable-bitbucket-properties (pull request #123)

DCD-1190 enable bitbucket properties

Approved-by: Geoff Jacobs
Approved-by: Adam Brokes
This commit is contained in:
Steve Smith
2021-01-19 04:22:29 +00:00
11 changed files with 31 additions and 10 deletions

View File

@@ -153,10 +153,3 @@ atl_rds_security_group: "{{ lookup('env', 'ATL_RDS_SECURITY_GROUP') }}"
atl_backup_manifest_url: "{{ lookup('env', 'ATL_BACKUP_MANIFEST_URL') }}" atl_backup_manifest_url: "{{ lookup('env', 'ATL_BACKUP_MANIFEST_URL') }}"
atl_restore_required: "{{ atl_backup_manifest_url is defined and atl_backup_manifest_url != '' }}" atl_restore_required: "{{ atl_backup_manifest_url is defined and atl_backup_manifest_url != '' }}"
atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}"
atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}"
atl_bitbucket_dataset_url: "{{ lookup('env', 'ATL_DATASET_URL') }}"
atl_bitbucket_baseurl: "{{ lookup('env', 'ATL_BB_BASEURL') }}"

View File

@@ -1,4 +1,5 @@
--- ---
atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}" atl_bitbucket_baseurl: "{{ lookup('env', 'ATL_BB_BASEURL') }}"
atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}" atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}"

View File

@@ -1 +0,0 @@
---

View File

@@ -0,0 +1,5 @@
---
atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}"
atl_bitbucket_properties_raw: "{{ lookup('env', 'ATL_BITBUCKET_PROPERTIES') }}"
atl_bitbucket_properties: "{{ atl_bitbucket_properties_raw.split(' ') | reject('equalto', '') | list }}"

View File

@@ -0,0 +1,4 @@
---
dependencies:
- bitbucket_common

View File

@@ -5,6 +5,9 @@ driver:
name: docker name: docker
lint: lint:
name: yamllint name: yamllint
options:
config-data:
line-length: disable
platforms: platforms:
- name: amazon_linux2 - name: amazon_linux2
image: amazonlinux:2 image: amazonlinux:2

View File

@@ -12,6 +12,8 @@
atl_jdbc_user: 'bb_db_user' atl_jdbc_user: 'bb_db_user'
atl_jdbc_password: 'molecule_password' atl_jdbc_password: 'molecule_password'
atl_bitbucket_properties_raw: "key1=val1 key2=val2 key3=val3"
roles: roles:
- role: linux_common - role: linux_common
- role: product_common - role: product_common

View File

@@ -14,3 +14,7 @@ def test_config_file(host):
assert f.contains("jdbc.driver=org.postgresql.Driver") assert f.contains("jdbc.driver=org.postgresql.Driver")
assert f.contains("jdbc.user=bb_db_user") assert f.contains("jdbc.user=bb_db_user")
assert f.contains("jdbc.password=molecule_password") assert f.contains("jdbc.password=molecule_password")
assert f.contains("^key1=val1$")
assert f.contains("^key2=val2$")
assert f.contains("^key3=val3$")

View File

@@ -1,4 +1,4 @@
# Created by Ansible # Created by Ansible role `bitbucket_config`
jdbc.driver={{ atl_db_driver }} jdbc.driver={{ atl_db_driver }}
jdbc.url={{ atl_jdbc_url }} jdbc.url={{ atl_jdbc_url }}
jdbc.user={{ atl_jdbc_user }} jdbc.user={{ atl_jdbc_user }}
@@ -34,3 +34,6 @@ server.scheme=http
server.proxy-port=80 server.proxy-port=80
{% endif %} {% endif %}
{% for prop in atl_bitbucket_properties %}
{{ prop }}
{% endfor %}

View File

@@ -0,0 +1,3 @@
---
atl_bitbucket_dataset_url: "{{ lookup('env', 'ATL_DATASET_URL') }}"

View File

@@ -0,0 +1,4 @@
---
dependencies:
- bitbucket_common