mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
---
|
|
|
|
|
|
- name: Create database config
|
|
template:
|
|
src: dbconfig.xml.j2
|
|
dest: "{{ atl_product_home }}/dbconfig.xml"
|
|
owner: "{{ atl_product_user }}"
|
|
|
|
- name: Create cluster config
|
|
template:
|
|
src: cluster.properties.j2
|
|
dest: "{{ atl_product_home }}/cluster.properties"
|
|
owner: "{{ atl_product_user }}"
|
|
|
|
- name: Create server config
|
|
template:
|
|
src: server.xml.j2
|
|
dest: "{{ atl_product_installation_versioned }}/conf/server.xml"
|
|
|
|
- name: Override JVM memory settings.
|
|
# Ugly but necessary as the product installs this file so we need to make the change here.
|
|
lineinfile:
|
|
path: "{{ atl_product_installation_versioned }}/bin/setenv.sh"
|
|
backrefs: true
|
|
regexp: "^{{ item }}="
|
|
line: "{{ item }}=\"{{ atl_jvm_heap }}\""
|
|
with_items:
|
|
- 'JVM_MINIMUM_MEMORY'
|
|
- 'JVM_MAXIMUM_MEMORY'
|
|
|
|
|
|
- name: Create application directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0750
|
|
owner: "{{ atl_product_user }}"
|
|
group: "{{ atl_product_user }}"
|
|
with_items:
|
|
- "{{ atl_product_home_shared }}"
|
|
- "{{ atl_product_shared_plugins }}"
|