Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

---
operator_mode: "applicationMonitoring" # default & prefered deployment option
dt_operator_release: "1.3.0-rc.0" # operator release should be linked with the right operator mode
dt_operator_release: "1.4.0" # operator release should be linked with the right operator mode
log_monitoring: "off"

# operator_mode: "classicFullStack"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@
- set_fact:
dt_oauth_access_token: "{{ auth_response_raw.json.access_token }}"

- include_role:
name: dt-platform
tasks_from: validate-app-version
vars:
dt_environment_url_gen3: "{{ extra_vars.dt_environment_url_gen3 }}"
dt_oauth_sso_endpoint: "{{ extra_vars.dt_oauth_sso_endpoint }}"
dt_oauth_client_id: "{{ extra_vars.dt_oauth_client_id }}"
dt_oauth_client_secret: "{{ extra_vars.dt_oauth_client_secret }}"
dt_oauth_account_urn: "{{ extra_vars.dt_oauth_account_urn }}"
# - include_role:
# name: dt-platform
# tasks_from: validate-app-version
# vars:
# dt_environment_url_gen3: "{{ extra_vars.dt_environment_url_gen3 }}"
# dt_oauth_sso_endpoint: "{{ extra_vars.dt_oauth_sso_endpoint }}"
# dt_oauth_client_id: "{{ extra_vars.dt_oauth_client_id }}"
# dt_oauth_client_secret: "{{ extra_vars.dt_oauth_client_secret }}"
# dt_oauth_account_urn: "{{ extra_vars.dt_oauth_account_urn }}"

- block:
- debug:
msg: "{{ dt_app_version }} of {{ dt_app_id }} is installed in target environment already. Skipping installation."
- set_fact:
dt_app_id: "{{ dt_app_id }}"
when: dt_app_version is defined and dt_app_version is not none
# - block:
# - debug:
# msg: "{{ dt_app_version }} of {{ dt_app_id }} is installed in target environment already. Skipping installation."
# - set_fact:
# dt_app_id: "{{ dt_app_id }}"
# when: dt_app_version is defined and dt_app_version is not none

- block:
- name: "Install app {{ dt_app_id }}"
Expand All @@ -65,6 +65,7 @@
Authorization: "Bearer {{ dt_oauth_access_token }}"
src: "{{ dt_app_artifact_path }}"
register: post_apps_response_raw

- set_fact:
dt_app_id: "{{ post_apps_response_raw.json.id }}"
when: dt_app_version is not defined or dt_app_version is none
Loading