ITOPSENG-366 handle cloned crowd db connections

This commit is contained in:
Geoff Jacobs
2020-01-08 13:59:58 +11:00
parent ae61c7ce68
commit 155993efff
2 changed files with 21 additions and 2 deletions

3
.gitignore vendored
View File

@@ -5,4 +5,5 @@ __pycache__
*.pyc *.pyc
/.venv /.venv
\#*\# \#*\#
.idea .idea
.vscode

View File

@@ -55,7 +55,6 @@
- "{{ atl_product_shared_plugins }}" - "{{ atl_product_shared_plugins }}"
changed_when: false # For Molecule idempotence check changed_when: false # For Molecule idempotence check
- name: Limit permissions on the installation directory - name: Limit permissions on the installation directory
file: file:
path: "{{ atl_product_installation_versioned }}" path: "{{ atl_product_installation_versioned }}"
@@ -108,3 +107,22 @@
- atl_tomcat_scheme is defined - atl_tomcat_scheme is defined
- not db_created.changed - 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
- name: Check that crowd.cfg.xml exists
stat:
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
register: crowd_cfg_stat_result
- name: Assert JDBC password to same as atl_jdbc_password
xml:
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
xpath: "/application-configuration/properties/property[@name='hibernate.connection.password']"
value: "{{ atl_jdbc_password }}"
when: crowd_cfg_stat_result.stat.exists
- name: Assert JDBC url to same as atl_jdbc_url
xml:
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
xpath: "/application-configuration/properties/property[@name='hibernate.connection.url']"
value: "{{ atl_jdbc_url }}?reWriteBatchedInserts=true"
when: crowd_cfg_stat_result.stat.exists