mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 08:23:06 -06:00
Changes after tarball PR was merged
This commit is contained in:
@@ -8,17 +8,16 @@ 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: 'installer'
|
||||
atl_download_format: 'tarball'
|
||||
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_crowd_download_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}.tar.gz"
|
||||
#atl_crowd_latest_url: "https://www.atlassian.com/software/crowd/downloads/binary/crowd-standalone-distribution-{{atl_latest_version}}.tar.gz"
|
||||
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_url: "{{ atl_product_base_url }}/atlassian-{{ atl_download_edition | default(atl_product_edition) }}-{{ atl_product_version }}{{ atl_crowd_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 }}"
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
---
|
||||
|
||||
|
||||
- name: Check for existing version cache file
|
||||
stat:
|
||||
path: "{{ atl_product_version_cache }}"
|
||||
@@ -124,6 +125,7 @@
|
||||
dest: "{{ atl_product_version_cache }}"
|
||||
force: true
|
||||
|
||||
|
||||
# Note: We don't the cache binary in the shared drive to the complexity
|
||||
# around download race-conditions if multiple nodes are starting at
|
||||
# the same time. When downloading from product-downloads.atlassian.com
|
||||
@@ -134,14 +136,12 @@
|
||||
dest: "{{ atl_product_download }}"
|
||||
mode: 0755
|
||||
force: false
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
- name: Create installer varfile
|
||||
template:
|
||||
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,10 +155,6 @@
|
||||
become_user: "{{ atl_product_user }}"
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
|
||||
- import_tasks: crowd_install.yml
|
||||
when: atl_product_edition == "crowd"
|
||||
|
||||
- name: Unpack the downloaded application depending on format
|
||||
include_tasks: "unpack_{{ atl_download_format }}.yml"
|
||||
|
||||
@@ -168,4 +164,3 @@
|
||||
dest: "{{ atl_product_installation_current }}"
|
||||
state: link
|
||||
force: true
|
||||
when: atl_product_edition != "crowd"
|
||||
|
||||
Reference in New Issue
Block a user