mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
ITOPSENG-101 jsd_as_obr support
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
atl_product_family: "jira"
|
atl_product_family: "jira"
|
||||||
atl_product_user: "jira"
|
atl_product_user: "jira"
|
||||||
atl_product_edition: "jira-{{ lookup('env', 'ATL_PRODUCT_EDITION') | lower }}"
|
atl_product_edition: "jira-{{ lookup('env', 'ATL_PRODUCT_EDITION') | lower }}"
|
||||||
|
atl_install_jsd_as_obr: "{{ lookup('env', 'ATL_JSD_ASOBR')"
|
||||||
atl_systemd_service_name: "jira.service"
|
atl_systemd_service_name: "jira.service"
|
||||||
|
|
||||||
atl_startup_systemd_params:
|
atl_startup_systemd_params:
|
||||||
|
|||||||
30
roles/product_install/tasks/jira-servicedesk_as_obr.yml
Normal file
30
roles/product_install/tasks/jira-servicedesk_as_obr.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Get the installer product version info
|
||||||
|
uri:
|
||||||
|
url="https://marketplace.atlassian.com/rest/2/products/key/jira-software/versions/name/{{ atl_product_version }}"
|
||||||
|
return_content=yes
|
||||||
|
register: atl_product_version_info
|
||||||
|
|
||||||
|
- name: lets grab the build number
|
||||||
|
debug:
|
||||||
|
msg="buildNumber={{ atl_product_version_info.json.buildNumber }}"
|
||||||
|
|
||||||
|
- name: Get the JSD build version info
|
||||||
|
uri:
|
||||||
|
url="https://marketplace.atlassian.com/rest/2/products/key/jira-servicedesk/versions/latest?application=jira&applicationBuild={{ atl_product_version_info.json.buildNumber }}"
|
||||||
|
return_content=yes
|
||||||
|
register: atl_jsd_build_info
|
||||||
|
|
||||||
|
- name: lets grab the obr binary href
|
||||||
|
debug:
|
||||||
|
msg="obr_ref={{ atl_jsd_build_info.json._embedded.artifact._links.binary.href }}"
|
||||||
|
|
||||||
|
- name: grab the jsd obr
|
||||||
|
get_url:
|
||||||
|
url: "{{ atl_jsd_build_info.json._embedded.artifact._links.binary.href }}"
|
||||||
|
dest: "{{ atl_installer_temp }}"
|
||||||
|
|
||||||
|
- name: override the atl_product_edition to jira-software
|
||||||
|
set_fact:
|
||||||
|
atl_product_edition: "jira-software"
|
||||||
@@ -146,3 +146,7 @@
|
|||||||
dest: "{{ atl_product_installation_current }}"
|
dest: "{{ atl_product_installation_current }}"
|
||||||
state: link
|
state: link
|
||||||
force: true
|
force: true
|
||||||
|
|
||||||
|
- name: Include if jsd is requested to be installed from OBR
|
||||||
|
include_tasks: "jira-servicedesk_as_obr.yml"
|
||||||
|
when: atl_install_jsd_as_obr
|
||||||
|
|||||||
Reference in New Issue
Block a user