From fcc4f1c97c5aeac1d7ee7ccc125191a19806d3c2 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Thu, 22 Oct 2020 15:34:32 +1100 Subject: [PATCH] DCD-1123: Add playbook for BB standalone server. --- group_vars/standalone_instances.yml | 2 ++ test_migration_bitbucket.yml | 54 +++++++++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 test_migration_bitbucket.yml diff --git a/group_vars/standalone_instances.yml b/group_vars/standalone_instances.yml index 900ec39..244a3bc 100644 --- a/group_vars/standalone_instances.yml +++ b/group_vars/standalone_instances.yml @@ -22,3 +22,5 @@ atl_jdbc_template: "template1" atl_java_home: "{{ '/usr/lib/jvm/java' if atl_use_system_jdk else (atl_product_installation_current + '/jre') }}" atl_java_binary: "{{ atl_java_home }}/bin/java" + +atl_ssl_proxy: "false" diff --git a/test_migration_bitbucket.yml b/test_migration_bitbucket.yml new file mode 100644 index 0000000..aa1ef88 --- /dev/null +++ b/test_migration_bitbucket.yml @@ -0,0 +1,54 @@ +--- + +# This playbook is intended for provisioning migration 'before' server instances, and should not be considered best practice. +# See migration-video-instances.yml for provisioning these instances. +# +# ansible-playbook -v -i inv/standalone_instances -e atl_db_root_password=XXX -e atl_jdbc_password=XXX test_migration_bitbucket.yml + +- hosts: bitbucket + become: true + + vars: + atl_proxy_name: "bitbucket-before.deplops.com" + atl_bitbucket_baseurl: "http://{{ atl_proxy_name }}" + + atl_product_family: "stash" + atl_product_edition: "bitbucket" + atl_product_user: "bitbucket" + + atl_product_version: "7.6.0" + atl_enable_clustering: false + atl_external_elasticsearch: false + + atl_db_host: "localhost" + atl_jdbc_user: "bitbucket" + atl_jdbc_db_name: "bitbucket" + + atl_jvm_heap: "12288m" + atl_use_system_jdk: true + atl_download_format: "tarball" + atl_systemd_service_name: "bitbucket.service" + + atl_write_tags: false + + atl_proxy_map: + "": "http://localhost:7990" + + atl_startup_systemd_params: + - "UMask=0027" + - "LimitNOFILE=4096" + - "Environment=JAVA_HOME={{ atl_java_home }}" + - "Environment=BITBUCKET_HOME={{ atl_product_home }}" + - "Environment=JVM_MAXIMUM_MEMORY={{ atl_jvm_heap }}" + - "Environment=JVM_MINIMUM_MEMORY={{ atl_jvm_heap }}" + + roles: + - role: linux_common + - role: aws_common + - role: postgres_install + - role: database_init + - role: product_common + - role: product_install + - role: bitbucket_config + - role: product_startup + - role: nginx