made changes to file to allow automated setup of bitbucket

This commit is contained in:
Andy Rajagopalan
2019-11-04 13:37:05 -08:00
parent af435cf782
commit cb6f3bdb61
6 changed files with 16 additions and 8 deletions

View File

@@ -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

View File

@@ -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') }}"

View File

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

View File

@@ -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 }}"

View File

@@ -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 }}

View 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/