diff --git a/aws_bitbucket_dc_node.yml b/aws_bitbucket_dc_node.yml index 3242007..7420513 100644 --- a/aws_bitbucket_dc_node.yml +++ b/aws_bitbucket_dc_node.yml @@ -8,16 +8,16 @@ 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" + atl_product_home: "/var/atlassian/application-data/bitbucket" atl_nfs_mountpoint: "{{ atl_shared_mountpoint }}/bitbucket/shared" atl_nfs_target: "{{ atl_shared_mountpoint }}/bitbucket/shared" atl_nfs_version: "3" + atl_startup_systemd_params: - "UMask=0027" - "LimitNOFILE=4096" @@ -38,7 +38,7 @@ - { 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, tags: [database] } - role: bitbucket_config - role: product_startup - role: bitbucket_dataset_restore diff --git a/roles/product_install/defaults/main.yml b/roles/product_install/defaults/main.yml index 92766b3..017f1c4 100644 --- a/roles/product_install/defaults/main.yml +++ b/roles/product_install/defaults/main.yml @@ -44,3 +44,4 @@ atl_source_obr_from_marketplace: true atl_servicedesk_download_file: "{{ atl_installer_temp }}/jira-servicedesk.{{ atl_product_version }}.obr" force_version_update: false +skip_shared_home_symlink: false \ No newline at end of file diff --git a/roles/product_install/tasks/no_op.yml b/roles/product_install/tasks/no_op.yml index ed97d53..f15c70e 100644 --- a/roles/product_install/tasks/no_op.yml +++ b/roles/product_install/tasks/no_op.yml @@ -1 +1,16 @@ --- +- name: Create the product local home directory + ansible.builtin.file: + path: "{{ atl_product_home }}/shared" + state: directory + owner: "{{ atl_product_user }}" + group: "{{ atl_product_user }}" + mode: "0754" + +- name: Symlink the the shared home + ansible.builtin.file: + src: "{{ atl_shared_mountpoint }}/{{ atl_product_edition }}/shared" + dest: "{{ atl_product_home }}/shared" + state: link + force: true + when: not skip_shared_home_symlink | bool \ No newline at end of file