mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
made changes to file to allow automated setup of bitbucket
This commit is contained in:
@@ -33,3 +33,4 @@
|
|||||||
- role: database_init
|
- role: database_init
|
||||||
- role: bitbucket_config
|
- role: bitbucket_config
|
||||||
- role: product_startup
|
- role: product_startup
|
||||||
|
- role: bitbucket-dataset-restore
|
||||||
|
|||||||
@@ -133,9 +133,11 @@ 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_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}"
|
||||||
atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}"
|
atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}"
|
||||||
atl_bitbucket_dataset_url: "{{ lookup('env', 'ATL_DATASET_URL') }}"
|
atl_bitbucket_dataset_url: "{{ lookup('env', 'ATL_DATASET_URL') }}"
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
4
roles/bitbucket_config/molecule/default/main.yml
Normal file
4
roles/bitbucket_config/molecule/default/main.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
atl_bitbucket_license_key: "{{ lookup('env', 'ATL_BB_LICENSEKEY') }}"
|
||||||
|
atl_bitbucket_admin_password: "{{ lookup('env', 'ATL_BB_ADMIN_PASSWORD') }}"
|
||||||
@@ -15,11 +15,6 @@
|
|||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
|
|
||||||
- name: Copy Bitbucket dataset from s3
|
|
||||||
get_url:
|
|
||||||
url: "{{ atl_bitbucket_dataset_url }}"
|
|
||||||
dest: /media/atl/bitbucket/shared/data/migration/import/
|
|
||||||
|
|
||||||
- name: Remove write permissions from installation directory
|
- name: Remove write permissions from installation directory
|
||||||
file:
|
file:
|
||||||
path: "{{ atl_product_installation_versioned }}"
|
path: "{{ atl_product_installation_versioned }}"
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ plugin.search.elasticsearch.baseurl={{ atl_elasticsearch_endpoint }}
|
|||||||
server.proxy-name={{ atl_proxy_name }}
|
server.proxy-name={{ atl_proxy_name }}
|
||||||
server.secure={{ atl_ssl_proxy }}
|
server.secure={{ atl_ssl_proxy }}
|
||||||
server.require-ssl={{ atl_ssl_proxy }}
|
server.require-ssl={{ atl_ssl_proxy }}
|
||||||
setup.license={{ atl_bitbucket_license_key }}
|
|
||||||
setup.sysadmin.username=admin
|
|
||||||
setup.sysadmin.password={{ atl_bitbucket_admin_password }}
|
|
||||||
{% if atl_ssl_proxy == 'true' %}
|
{% if atl_ssl_proxy == 'true' %}
|
||||||
server.scheme=https
|
server.scheme=https
|
||||||
server.proxy-port=443
|
server.proxy-port=443
|
||||||
@@ -29,3 +26,6 @@ server.additional-connector.1.port=7991
|
|||||||
server.scheme=http
|
server.scheme=http
|
||||||
server.proxy-port=80
|
server.proxy-port=80
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
setup.license={{ atl_bitbucket_license_key }}
|
||||||
|
setup.sysadmin.username=admin
|
||||||
|
setup.sysadmin.password={{ atl_bitbucket_admin_password }}
|
||||||
|
|||||||
6
roles/bitbucket_dataset_restore/tasks/main.yml
Normal file
6
roles/bitbucket_dataset_restore/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Copy Bitbucket dataset from s3
|
||||||
|
get_url:
|
||||||
|
url: "{{ atl_bitbucket_dataset_url }}"
|
||||||
|
dest: /media/atl/bitbucket/shared/data/migration/import/
|
||||||
Reference in New Issue
Block a user