mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Add Bitbucket config role.
This commit is contained in:
@@ -41,6 +41,8 @@ atl_product_version: "{{ lookup('env', 'ATL_PRODUCT_VERSION') | lower }}"
|
|||||||
|
|
||||||
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
|
atl_efs_id: "{{ lookup('env', 'ATL_EFS_ID') }}"
|
||||||
atl_aws_stack_name: "{{ lookup('env', 'ATL_AWS_STACK_NAME') }}"
|
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_host: "{{ lookup('env', 'ATL_DB_HOST') }}"
|
||||||
atl_db_port: "{{ lookup('env', 'ATL_DB_PORT') or '5432' }}"
|
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_tomcat_secure: "{{ lookup('env', 'ATL_TOMCAT_SECURE') or 'false' }}"
|
||||||
|
|
||||||
atl_fileserver_host: "{{ lookup('env', 'ATL_FILESERVER_IP') }}"
|
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' }}"
|
||||||
|
|||||||
6
roles/bitbucket_config/tasks/main.yml
Normal file
6
roles/bitbucket_config/tasks/main.yml
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Create Bitbucket config file
|
||||||
|
template:
|
||||||
|
src: bitbucket.properties.j2
|
||||||
|
dest: "{{ atl_product_home_shared }}/bitbucket.properties"
|
||||||
27
roles/bitbucket_config/templates/bitbucket.properties.j2
Normal file
27
roles/bitbucket_config/templates/bitbucket.properties.j2
Normal 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 %}
|
||||||
Reference in New Issue
Block a user