ITOPSENG-277 handle updating base_url

This commit is contained in:
Brett Meehan
2019-11-28 14:35:41 +11:00
parent 49066285a8
commit c3fd34b134
4 changed files with 20 additions and 5 deletions

View File

@@ -52,7 +52,6 @@
owner: "{{ atl_product_user }}"
group: "{{ atl_product_user }}"
- name: Limit permissions on the installation directory
file:
path: "{{ atl_product_installation_versioned }}"
@@ -79,3 +78,15 @@
- "{{ 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 bandana set bandanavalue=regexp_replace(%s, %s, %s) where bandanacontext = '_GLOBAL' and bandanakey = 'atlassian.confluence.settings';
positional_args:
- bandanavalue
- <baseUrl>.*</baseUrl>
- "<baseUrl>{{ atl_tomcat_scheme }}://{{ atl_proxy_name }}</baseUrl>"

View File

@@ -1,4 +1,4 @@
<security-config>
grep <security-config>
<parameters>
<init-param>
<param-name>login.url</param-name>
@@ -16,8 +16,8 @@
<param-name>login.cookie.key</param-name>
<param-value>seraph.confluence</param-value>
</init-param>
{% if atl_autologin_cookie_age is defined and atl_autologin_cookie_age|length %}
{% if atl_autologin_cookie_age is defined and atl_autologin_cookie_age is not none %}
<init-param>
<param-name>autologin.cookie.age</param-name>
<param-value>{{ atl_autologin_cookie_age }}</param-value>