diff --git a/group_vars/aws_node_local.yml b/group_vars/aws_node_local.yml index f89054b..1f9a49c 100644 --- a/group_vars/aws_node_local.yml +++ b/group_vars/aws_node_local.yml @@ -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' }}" diff --git a/roles/bitbucket_config/tasks/main.yml b/roles/bitbucket_config/tasks/main.yml new file mode 100644 index 0000000..14b8c21 --- /dev/null +++ b/roles/bitbucket_config/tasks/main.yml @@ -0,0 +1,6 @@ +--- + +- name: Create Bitbucket config file + template: + src: bitbucket.properties.j2 + dest: "{{ atl_product_home_shared }}/bitbucket.properties" diff --git a/roles/bitbucket_config/templates/bitbucket.properties.j2 b/roles/bitbucket_config/templates/bitbucket.properties.j2 new file mode 100644 index 0000000..93cecff --- /dev/null +++ b/roles/bitbucket_config/templates/bitbucket.properties.j2 @@ -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 %}