mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
Overwrite atl_download_format for crowd
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
atl_product_user: "crowd"
|
atl_product_user: "crowd"
|
||||||
atl_product_edition: "crowd"
|
atl_product_edition: "crowd"
|
||||||
atl_use_system_jdk: true
|
atl_use_system_jdk: true
|
||||||
|
atl_download_format: "tarball"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: linux_common
|
- role: linux_common
|
||||||
|
|||||||
@@ -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_dir: "{{ atl_product_home_shared }}"
|
||||||
atl_product_version_cache: "{{ atl_product_home_shared }}/{{ atl_product_edition }}.version"
|
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:
|
atl_download_format_suffix_map:
|
||||||
installer: '-x64.bin'
|
installer: '-x64.bin'
|
||||||
tarball: '.tar.gz'
|
tarball: '.tar.gz'
|
||||||
atl_download_suffix: "{{ atl_download_format_suffix_map[atl_download_format] }}"
|
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_release_base_url: "https://product-downloads.atlassian.com/software"
|
||||||
atl_product_base_url: "{{ atl_release_base_url }}/{{ atl_product_family }}/downloads"
|
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_filename: "{{ atl_download_edition | default(atl_product_edition) }}.{{ atl_product_version }}{{ atl_download_suffix }}"
|
||||||
atl_product_download: "{{ atl_installer_temp }}/{{ atl_product_download_filename }}"
|
atl_product_download: "{{ atl_installer_temp }}/{{ atl_product_download_filename }}"
|
||||||
|
|||||||
@@ -142,6 +142,7 @@
|
|||||||
src: "{{ atl_product_family }}.varfile.j2"
|
src: "{{ atl_product_family }}.varfile.j2"
|
||||||
dest: "{{ atl_product_varfile }}"
|
dest: "{{ atl_product_varfile }}"
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
when: atl_product_edition!= "crowd"
|
||||||
|
|
||||||
# NOTE: We run the installer as the user rather than root to limit its
|
# 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
|
# actions. For example, if root and the 'jira' user exists then it
|
||||||
@@ -155,6 +156,10 @@
|
|||||||
become_user: "{{ atl_product_user }}"
|
become_user: "{{ atl_product_user }}"
|
||||||
when: atl_product_edition!= "crowd"
|
when: atl_product_edition!= "crowd"
|
||||||
|
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg: "FORMAT - {{ atl_download_format }}"
|
||||||
|
|
||||||
- name: Unpack the downloaded application depending on format
|
- name: Unpack the downloaded application depending on format
|
||||||
include_tasks: "unpack_{{ atl_download_format }}.yml"
|
include_tasks: "unpack_{{ atl_download_format }}.yml"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user