Overwrite atl_download_format for crowd

This commit is contained in:
Azra Sulthana
2019-07-15 06:54:58 +00:00
parent 6224ecfbad
commit 20b0b3db89
3 changed files with 8 additions and 3 deletions

View File

@@ -8,6 +8,7 @@
atl_product_user: "crowd"
atl_product_edition: "crowd"
atl_use_system_jdk: true
atl_download_format: "tarball"
roles:
- role: linux_common

View File

@@ -8,16 +8,15 @@ atl_product_latest_version_url: "https://marketplace.atlassian.com/rest/2/applic
atl_product_version_cache_dir: "{{ atl_product_home_shared }}"
atl_product_version_cache: "{{ atl_product_home_shared }}/{{ atl_product_edition }}.version"
atl_download_format: 'tarball'
atl_download_format: 'installer'
atl_download_format_suffix_map:
installer: '-x64.bin'
tarball: '.tar.gz'
atl_download_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}"
atl_crowd_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}"
atl_release_base_url: "https://product-downloads.atlassian.com/software"
atl_product_base_url: "{{ atl_release_base_url }}/{{ atl_product_family }}/downloads"
atl_product_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}{{ atl_crowd_suffix }}"
atl_product_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}{{ atl_download_suffix }}"
atl_product_download_filename: "{{ atl_download_edition | default(atl_product_edition) }}.{{ atl_product_version }}{{ atl_download_suffix }}"
atl_product_download: "{{ atl_installer_temp }}/{{ atl_product_download_filename }}"

View File

@@ -142,6 +142,7 @@
src: "{{ atl_product_family }}.varfile.j2"
dest: "{{ atl_product_varfile }}"
mode: 0755
when: atl_product_edition!= "crowd"
# NOTE: We run the installer as the user rather than root to limit its
# actions. For example, if root and the 'jira' user exists then it
@@ -155,6 +156,10 @@
become_user: "{{ atl_product_user }}"
when: atl_product_edition!= "crowd"
- debug:
msg: "FORMAT - {{ atl_download_format }}"
- name: Unpack the downloaded application depending on format
include_tasks: "unpack_{{ atl_download_format }}.yml"