Merged in bugfix/ITOPSENG-359-ansible---fix-base_url-upda (pull request #64)

Bugfix/ITOPSENG-359 ansible   fix base url upda

Approved-by: Steve Smith <ssmith@atlassian.com>
This commit is contained in:
Brett Meehan
2020-01-07 11:12:08 +00:00
3 changed files with 36 additions and 1 deletions

View File

@@ -108,8 +108,9 @@
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
- not db_created.changed
ignore_errors: yes # For Molecule as it has no db test framework included

View File

@@ -91,3 +91,20 @@
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
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 cwd_property set property_value=%s
where property_name = 'base.url'
positional_args:
- "{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}{{ atl_tomcat_contextpath }}/crowd"
when:
- atl_proxy_name is defined
- atl_tomcat_scheme is defined
- not db_created.changed
ignore_errors: yes # For Molecule as it has no db test framework included

View File

@@ -87,3 +87,20 @@
- "{{ 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
- not db_created.changed
ignore_errors: yes # For Molecule as it has no db test framework included