DCD-386: Add Bitbucket config role.

This commit is contained in:
Steve Smith
2019-05-30 14:31:14 +10:00
parent 40340c99c4
commit 03811f3b47
3 changed files with 38 additions and 0 deletions

View File

@@ -41,6 +41,8 @@ atl_product_version: "{{ lookup('env', 'ATL_PRODUCT_VERSION') | lower }}"
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
atl_aws_stack_name: "{{ lookup('env', 'ATL_AWS_STACK_NAME') }}"
atl_aws_region: "{{ lookup('env', 'ATL_AWS_REGION') }}"
atl_aws_iam_role: "{{ lookup('env', 'ATL_AWS_IAM_ROLE') }}"
atl_db_host: "{{ lookup('env', 'ATL_DB_HOST') }}"
atl_db_port: "{{ lookup('env', 'ATL_DB_PORT') or '5432' }}"
@@ -88,3 +90,6 @@ atl_tomcat_scheme: "{{ lookup('env', 'ATL_TOMCAT_SCHEME') or 'http' }}"
atl_tomcat_secure: "{{ lookup('env', 'ATL_TOMCAT_SECURE') or 'false' }}"
atl_fileserver_host: "{{ lookup('env', 'ATL_FILESERVER_IP') }}"
atl_elasticsearch_endpoint: "{{ lookup('env', 'ATL_ELASTICSEARCH_ENDPOINT') }}"
atl_ssl_proxy: "{{ lookup('env', 'ATL_SSL_PROXY') or 'false' }}"

View File

@@ -0,0 +1,6 @@
---
- name: Create Bitbucket config file
template:
src: bitbucket.properties.j2
dest: "{{ atl_product_home_shared }}/bitbucket.properties"

View File

@@ -0,0 +1,27 @@
# Created by Ansible
jdbc.driver={{ atl_db_driver }}
jdbc.url={{ atl_jdbc_url }}
jdbc.user={{ atl_jdbc_user }}
jdbc.password={{ atl_jdbc_password }}
hazelcast.network.aws=true
hazelcast.network.aws.tag.key=Cluster
hazelcast.network.multicast=false
hazelcast.network.aws.iam.role={{ atl_aws_iam_role }}
hazelcast.network.aws.region={{ atl_aws_region }}
hazelcast.network.aws.tag.value={{ atl_aws_stack_name }}
hazelcast.group.name={{ atl_aws_stack_name }}
hazelcast.group.password={{ atl_aws_stack_name }}
plugin.search.elasticsearch.aws.region={{ atl_aws_region }}
plugin.search.elasticsearch.baseurl={{ atl_elasticsearch_endpoint }}
server.proxy-name={{ atl_proxy_name }}
server.proxy-port={{ atl_proxy_port }}
server.secure={{ atl_ssl_proxy }}
server.require-ssl={{ atl_ssl_proxy }}
{% if atl_ssl_proxy == 'true' %}
server.scheme=https
server.additional-connector.1.port=7991
{% else %}
server.scheme=http
{% endif %}