mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITPLT-79 add in min/max db connections to crowd.cfg.xml
This commit is contained in:
@@ -135,18 +135,33 @@
|
|||||||
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
||||||
register: crowd_cfg_stat_result
|
register: crowd_cfg_stat_result
|
||||||
|
|
||||||
- name: Assert JDBC password to same as atl_jdbc_password
|
- block:
|
||||||
xml:
|
- name: Assert JDBC password to same as atl_jdbc_password
|
||||||
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
xml:
|
||||||
xpath: "/application-configuration/properties/property[@name='hibernate.connection.password']"
|
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
||||||
value: "{{ atl_jdbc_password }}"
|
xpath: "/application-configuration/properties/property[@name='hibernate.connection.password']"
|
||||||
when: crowd_cfg_stat_result.stat.exists
|
value: "{{ atl_jdbc_password }}"
|
||||||
|
|
||||||
|
- 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"
|
||||||
|
|
||||||
|
- name: Assert hibernate.c3p0.max_size to same as atl_db_poolmaxsize
|
||||||
|
xml:
|
||||||
|
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
||||||
|
xpath: "/application-configuration/properties/property[@name='hibernate.c3p0.max_size']"
|
||||||
|
value: "{{ atl_db_poolmaxsize }}"
|
||||||
|
when: atl_db_poolmaxsize is defined
|
||||||
|
|
||||||
|
- name: Assert hibernate.c3p0.min_size to same as atl_db_poolminsize
|
||||||
|
xml:
|
||||||
|
path: "{{ atl_product_home_shared }}/crowd.cfg.xml"
|
||||||
|
xpath: "/application-configuration/properties/property[@name='hibernate.c3p0.min_size']"
|
||||||
|
value: "{{ atl_db_poolminsize }}"
|
||||||
|
when: atl_db_poolminsize is defined
|
||||||
|
|
||||||
- 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
|
when: crowd_cfg_stat_result.stat.exists
|
||||||
|
|
||||||
- name: Remove crowd.xml to prevent duplicates from appearing in cluster reporting
|
- name: Remove crowd.xml to prevent duplicates from appearing in cluster reporting
|
||||||
|
|||||||
Reference in New Issue
Block a user