mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
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:
@@ -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') }}"
|
|
||||||
|
|||||||
@@ -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') }}"
|
||||||
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
---
|
|
||||||
5
roles/bitbucket_config/defaults/main.yaml
Normal file
5
roles/bitbucket_config/defaults/main.yaml
Normal 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 }}"
|
||||||
4
roles/bitbucket_config/meta/main.yml
Normal file
4
roles/bitbucket_config/meta/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- bitbucket_common
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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$")
|
||||||
|
|||||||
@@ -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 %}
|
||||||
|
|||||||
3
roles/bitbucket_dataset_restore/defaults/main.yml
Normal file
3
roles/bitbucket_dataset_restore/defaults/main.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
atl_bitbucket_dataset_url: "{{ lookup('env', 'ATL_DATASET_URL') }}"
|
||||||
4
roles/bitbucket_dataset_restore/meta/main.yml
Normal file
4
roles/bitbucket_dataset_restore/meta/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
dependencies:
|
||||||
|
- bitbucket_common
|
||||||
Reference in New Issue
Block a user