mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
ITOPSENG-366 handle cloned crowd db connections
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -5,4 +5,5 @@ __pycache__
|
|||||||
*.pyc
|
*.pyc
|
||||||
/.venv
|
/.venv
|
||||||
\#*\#
|
\#*\#
|
||||||
.idea
|
.idea
|
||||||
|
.vscode
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user