mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
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:
@@ -108,8 +108,9 @@
|
|||||||
where bandanacontext = '_GLOBAL' and bandanakey = 'atlassian.confluence.settings';
|
where bandanacontext = '_GLOBAL' and bandanakey = 'atlassian.confluence.settings';
|
||||||
positional_args:
|
positional_args:
|
||||||
- "<baseUrl>.*</baseUrl>"
|
- "<baseUrl>.*</baseUrl>"
|
||||||
- "<baseUrl>{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}</baseUrl>"
|
- "<baseUrl>{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}{{ atl_tomcat_contextpath }}</baseUrl>"
|
||||||
when:
|
when:
|
||||||
- atl_proxy_name is defined
|
- atl_proxy_name is defined
|
||||||
- atl_tomcat_scheme is defined
|
- atl_tomcat_scheme is defined
|
||||||
|
- not db_created.changed
|
||||||
ignore_errors: yes # For Molecule as it has no db test framework included
|
ignore_errors: yes # For Molecule as it has no db test framework included
|
||||||
|
|||||||
@@ -91,3 +91,20 @@
|
|||||||
owner: "{{ atl_product_user }}"
|
owner: "{{ atl_product_user }}"
|
||||||
group: "{{ atl_product_user }}"
|
group: "{{ atl_product_user }}"
|
||||||
changed_when: false # For Molecule idempotence check
|
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
|
||||||
|
|||||||
@@ -87,3 +87,20 @@
|
|||||||
- "{{ atl_product_installation_versioned }}/temp"
|
- "{{ atl_product_installation_versioned }}/temp"
|
||||||
- "{{ atl_product_installation_versioned }}/work"
|
- "{{ atl_product_installation_versioned }}/work"
|
||||||
changed_when: false # For Molecule idempotence check
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user