From 748522814553bd18ecb1227bfcfdb2093d085a42 Mon Sep 17 00:00:00 2001 From: Steve Smith Date: Thu, 22 Oct 2020 14:10:30 +1100 Subject: [PATCH] DCD-1123: Add confluence server installation playbook. --- group_vars/standalone_instances.yml | 5 ++- inv/standalone_instances | 12 +++++++ test_migration_confluence.yml | 50 +++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 test_migration_confluence.yml diff --git a/group_vars/standalone_instances.yml b/group_vars/standalone_instances.yml index 35b0386..89903e5 100644 --- a/group_vars/standalone_instances.yml +++ b/group_vars/standalone_instances.yml @@ -2,7 +2,7 @@ atl_home_base: "/var/atlassian/application-data" atl_product_home: "/home/{{ atl_product_user }}" -atl_product_home_shared: "{{ atl_product_home }}" +atl_product_home_shared: "{{ atl_product_home }}/shared" atl_product_home_shared_download_dir: "{{ atl_product_home }}/downloads" atl_product_shared_plugins: "{{ atl_product_home }}/plugins" @@ -15,3 +15,6 @@ atl_installer_temp: "{{ atl_installation_base }}/tmp" atl_db_type: "postgres72" atl_jdbc_url: "jdbc:postgresql://{{ atl_db_host }}/{{ atl_jdbc_db_name }}" atl_db_driver: "org.postgresql.Driver" + +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" diff --git a/inv/standalone_instances b/inv/standalone_instances index c1aef09..6d258c7 100644 --- a/inv/standalone_instances +++ b/inv/standalone_instances @@ -4,6 +4,18 @@ jira-software-before.deplops.com ansible_user=ec2-user [jira_servicedesk] jira-sd-before.deplops.com ansible_user=ec2-user +[confluence] +confluence-before.deplops.com ansible_user=ec2-user + +[bitbucket] +bitbucket-before.deplops.com ansible_user=ec2-user + +[crowd] +crowd-before.deplops.com ansible_user=ec2-user + [standalone_instances] jira-software-before.deplops.com ansible_user=ec2-user jira-sd-before.deplops.com ansible_user=ec2-user +confluence-before.deplops.com ansible_user=ec2-user +bitbucket-before.deplops.com ansible_user=ec2-user +crowd-before.deplops.com ansible_user=ec2-user diff --git a/test_migration_confluence.yml b/test_migration_confluence.yml new file mode 100644 index 0000000..05b73c4 --- /dev/null +++ b/test_migration_confluence.yml @@ -0,0 +1,50 @@ +--- + +# 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_confluence.yml + +- hosts: confluence + become: true + + vars: + atl_proxy_name: "confluence-before.deplops.com" + + atl_product_family: "confluence" + atl_product_user: "confluence" + atl_product_edition: "confluence" + + atl_product_version: "7.4.5" + atl_enable_clustering: false + + atl_db_host: "localhost" + atl_jdbc_user: "confluence" + atl_jdbc_db_name: "confluence" + + atl_jdbc_encoding: 'UTF-8' + atl_jdbc_collation: 'en_US.UTF-8' + atl_jdbc_template: 'template0' + + atl_jvm_heap: "12288m" + atl_use_system_jdk: true + atl_download_format: "tarball" + atl_systemd_service_name: "confluence.service" + + atl_write_tags: false + + atl_proxy_map: + "": "http://localhost:8080" + + + roles: + - role: linux_common + - role: aws_common + - role: postgres_install + - role: database_init + - role: product_common + - role: product_install + - role: confluence_common + - role: confluence_config + - role: product_startup + - role: nginx