ITOPSENG-359 fixing context_path for crowd while im at it

This commit is contained in:
Brett Meehan
2020-01-06 15:55:29 +11:00
parent 4b96222991
commit 6b6d5ba3a4

View File

@@ -91,3 +91,19 @@
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
ignore_errors: yes # For Molecule as it has no db test framework included