From 764ac473d22f50cf758962cf0e4f396676741662 Mon Sep 17 00:00:00 2001 From: Geoff Jacobs Date: Tue, 8 Nov 2022 07:33:00 +1100 Subject: [PATCH] Bitbucket DC Mirror nodes prefer h2 db, so adding a way to skip the database_init role completely --- aws_bitbucket_dc_node.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aws_bitbucket_dc_node.yml b/aws_bitbucket_dc_node.yml index 797197f..58168c1 100644 --- a/aws_bitbucket_dc_node.yml +++ b/aws_bitbucket_dc_node.yml @@ -8,6 +8,8 @@ atl_product_edition: "bitbucket" atl_product_user: "bitbucket" + atl_product_home: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}" + atl_use_system_jdk: true java_major_version: "11" # BB 8 will drop JDK 8 support atl_download_format: "tarball" @@ -32,11 +34,11 @@ - role: aws_common # For Bitbucket DC clusters that store repos on Bitbucket Mesh(https://confluence.atlassian.com/bitbucketserver/bitbucket-data-center-and-server-8-0-release-notes-1115659343.html#BitbucketDataCenterandServer8.0releasenotes-mesh), # nodes may be setup to use EFS instead of NFS for shared_home by not defining 'atl_fileserver_host' - - { role: aws_shared_fs_config, when: (atl_fileserver_host is not defined or atl_fileserver_host |length == 0) and (atl_efs_id|length > 0) } - - { role: nfs_mount, when : (atl_fileserver_host is defined) and (atl_fileserver_host|length > 0) } + - { role: aws_shared_fs_config, when: (atl_fileserver_host is not defined or atl_fileserver_host | length == 0) and (atl_efs_id | length > 0) } + - { role: nfs_mount, when: (atl_fileserver_host is defined) and (atl_fileserver_host|length > 0) } - role: product_common - role: product_install - - role: database_init + - { role: database_init, when: (skip_database_init is not defined) or not (skip_database_init) } - role: bitbucket_config - role: product_startup - role: bitbucket_dataset_restore