ITOPSENG-359 fix jira base_url on clone and add contextpath to both confluence and jira

This commit is contained in:
Brett Meehan
2020-01-06 15:14:31 +11:00
parent 051afc7c09
commit 4b96222991
2 changed files with 17 additions and 1 deletions

View File

@@ -108,7 +108,7 @@
where bandanacontext = '_GLOBAL' and bandanakey = 'atlassian.confluence.settings';
positional_args:
- "<baseUrl>.*</baseUrl>"
- "<baseUrl>{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}</baseUrl>"
- "<baseUrl>{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}{{ atl_tomcat_contextpath }}</baseUrl>"
when:
- atl_proxy_name is defined
- atl_tomcat_scheme is defined

View File

@@ -87,3 +87,19 @@
- "{{ atl_product_installation_versioned }}/temp"
- "{{ atl_product_installation_versioned }}/work"
changed_when: false # For Molecule idempotence check
- name: Assert baseurl to same as atl_proxy_name
postgresql_query:
login_host: "{{ atl_db_host }}"
login_user: "{{ atl_jdbc_user }}"
login_password: "{{ atl_jdbc_password }}"
db: "{{ atl_jdbc_db_name }}"
query: >
update propertystring set propertyvalue=%s
where id=(select id from propertyentry where property_key = 'jira.baseurl')
positional_args:
- "{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}{{ atl_tomcat_contextpath }}"
when:
- atl_proxy_name is defined
- atl_tomcat_scheme is defined
ignore_errors: yes # For Molecule as it has no db test framework included