mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-17 02:13:06 -06:00
add-crowd-support
This commit is contained in:
@@ -1 +0,0 @@
|
||||
no_op.yml
|
||||
1
roles/product_install/tasks/bitbucket_extra_tasks.yml
Normal file
1
roles/product_install/tasks/bitbucket_extra_tasks.yml
Normal file
@@ -0,0 +1 @@
|
||||
no_op.yml
|
||||
@@ -1 +0,0 @@
|
||||
product_version_latest.yml
|
||||
1
roles/product_install/tasks/bitbucket_version_latest.yml
Normal file
1
roles/product_install/tasks/bitbucket_version_latest.yml
Normal file
@@ -0,0 +1 @@
|
||||
product_version_latest.yml
|
||||
@@ -1 +0,0 @@
|
||||
no_op.yml
|
||||
1
roles/product_install/tasks/confluence_extra_tasks.yml
Normal file
1
roles/product_install/tasks/confluence_extra_tasks.yml
Normal file
@@ -0,0 +1 @@
|
||||
no_op.yml
|
||||
@@ -1 +0,0 @@
|
||||
product_version_latest.yml
|
||||
@@ -0,0 +1 @@
|
||||
product_version_latest.yml
|
||||
1
roles/product_install/tasks/crowd_extra_tasks.yml
Normal file
1
roles/product_install/tasks/crowd_extra_tasks.yml
Normal file
@@ -0,0 +1 @@
|
||||
no_op.yml
|
||||
44
roles/product_install/tasks/crowd_install.yml
Normal file
44
roles/product_install/tasks/crowd_install.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
- debug:
|
||||
msg: "atl_latest_version - {{atl_latest_version}}"
|
||||
|
||||
- name: Fetch crowd installer
|
||||
get_url:
|
||||
url: "{{atl_crowd_download_url}}"
|
||||
dest: "{{atl_crowd_download}}"
|
||||
mode: 0755
|
||||
force: false
|
||||
when: not atl_latest_version
|
||||
|
||||
- name: Fetch latest crowd installer
|
||||
get_url:
|
||||
url: "{{ atl_crowd_latest_url }}"
|
||||
dest: "{{atl_crowd_download}}"
|
||||
mode: 0755
|
||||
force: false
|
||||
when: atl_latest_version != ""
|
||||
|
||||
|
||||
- name: locate installer
|
||||
find: paths="{{ atl_crowd_download }}" patterns="*crowd*.tar.gz"
|
||||
register: find_result
|
||||
|
||||
- debug: msg = " {{find_result }}"
|
||||
|
||||
- name: unarchive
|
||||
become: true
|
||||
unarchive:
|
||||
src: "{{ item.path }}"
|
||||
dest: "{{atl_product_installation_versioned}}"
|
||||
# remote_src: yes
|
||||
with_items: "{{ find_result.files }}"
|
||||
|
||||
#- name: unpack crowd
|
||||
# shell: tar -xvzf {{atl_crowd_download}}/*crowd*{{atl_product_version}}.tar.gz .
|
||||
|
||||
- name: Symlink the installed version to current
|
||||
file:
|
||||
src: "{{ atl_product_installation_versioned }}/atlassian-crowd-{{atl_product_version}}"
|
||||
dest: "{{ atl_product_installation_current }}"
|
||||
state: link
|
||||
force: true
|
||||
|
||||
13
roles/product_install/tasks/crowd_version_latest.yml
Normal file
13
roles/product_install/tasks/crowd_version_latest.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
---
|
||||
|
||||
# This is the process for most products (except ServiceDesk
|
||||
# basically). Symlink this to <edition>_version_latest.yml for each
|
||||
# product that supports the standard marketplace API.
|
||||
|
||||
- name: Fetch the latest version from URL
|
||||
set_fact:
|
||||
atl_product_version_json: "{{ lookup('url', '{{ atl_product_latest_version_url }}') }}"
|
||||
|
||||
- name: Set the local var to retrieved version
|
||||
set_fact:
|
||||
atl_latest_version: "{{ atl_product_version_json.version }}"
|
||||
@@ -1 +0,0 @@
|
||||
no_op.yml
|
||||
1
roles/product_install/tasks/jira-core_extra_tasks.yml
Normal file
1
roles/product_install/tasks/jira-core_extra_tasks.yml
Normal file
@@ -0,0 +1 @@
|
||||
no_op.yml
|
||||
@@ -1 +0,0 @@
|
||||
product_version_latest.yml
|
||||
1
roles/product_install/tasks/jira-core_version_latest.yml
Normal file
1
roles/product_install/tasks/jira-core_version_latest.yml
Normal file
@@ -0,0 +1 @@
|
||||
product_version_latest.yml
|
||||
@@ -1 +0,0 @@
|
||||
no_op.yml
|
||||
@@ -0,0 +1 @@
|
||||
no_op.yml
|
||||
@@ -1 +0,0 @@
|
||||
product_version_latest.yml
|
||||
@@ -0,0 +1 @@
|
||||
product_version_latest.yml
|
||||
@@ -99,10 +99,9 @@
|
||||
|
||||
######################################################################
|
||||
|
||||
|
||||
- name: Perform any additional per-edition version setup
|
||||
include_tasks: "{{ atl_product_edition }}_extra_tasks.yml"
|
||||
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
- name: Create installation directories
|
||||
file:
|
||||
@@ -118,7 +117,6 @@
|
||||
- "{{ atl_product_version_cache_dir }}"
|
||||
changed_when: false # For Molecule idempotence check
|
||||
|
||||
|
||||
# At this point atl_product_version should be set, cache if necessary.
|
||||
- name: Write override cached version when specified
|
||||
template:
|
||||
@@ -136,12 +134,14 @@
|
||||
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
|
||||
@@ -153,6 +153,11 @@
|
||||
creates: "{{ atl_product_installation_versioned }}/.install4j/"
|
||||
become: true
|
||||
become_user: "{{ atl_product_user }}"
|
||||
when: atl_product_edition!= "crowd"
|
||||
|
||||
|
||||
- import_tasks: crowd_install.yml
|
||||
when: atl_product_edition == "crowd"
|
||||
|
||||
- name: Symlink the installed version to current
|
||||
file:
|
||||
@@ -160,3 +165,4 @@
|
||||
dest: "{{ atl_product_installation_current }}"
|
||||
state: link
|
||||
force: true
|
||||
when: atl_product_edition != "crowd"
|
||||
|
||||
Reference in New Issue
Block a user