ITOPSENG-101 jsd_as_obr support

This commit is contained in:
Brett Meehan
2019-10-17 14:51:32 +11:00
parent 610f1cd58a
commit 2a67eae9c8
3 changed files with 35 additions and 0 deletions

View File

@@ -7,6 +7,7 @@
atl_product_family: "jira"
atl_product_user: "jira"
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_startup_systemd_params:

View 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"

View File

@@ -146,3 +146,7 @@
dest: "{{ atl_product_installation_current }}"
state: link
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