mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
77 lines
2.2 KiB
YAML
77 lines
2.2 KiB
YAML
---
|
|
|
|
- name: Create application directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: 0750
|
|
owner: "{{ atl_product_user }}"
|
|
group: "{{ atl_product_user }}"
|
|
with_items:
|
|
- "{{ atl_product_home }}"
|
|
- "{{ atl_product_home_shared }}"
|
|
- "{{ atl_product_shared_plugins }}"
|
|
changed_when: false # For Molecule idempotence check
|
|
|
|
|
|
- name: Create Tomcat server config
|
|
template:
|
|
src: server.xml.j2
|
|
dest: "{{ atl_product_installation_versioned }}/conf/server.xml"
|
|
|
|
- name: Override JVM memory settings.
|
|
replace:
|
|
path: "{{ atl_product_installation_versioned }}/bin/setenv.sh"
|
|
regexp: "-{{ item }}\\d+m "
|
|
replace: "-{{ item }}{{ atl_jvm_heap }} "
|
|
with_items:
|
|
- 'Xmx'
|
|
- 'Xms'
|
|
|
|
- name: Set the Tomcat environment
|
|
lineinfile:
|
|
path: "{{ atl_product_installation_versioned }}/bin/setenv.sh"
|
|
insertafter: "EOF"
|
|
line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"'
|
|
|
|
|
|
- name: Configure login properties
|
|
template:
|
|
src: seraph-config.xml.j2
|
|
dest: "{{ atl_product_installation_versioned }}/confluence/WEB-INF/classes/seraph-config.xml"
|
|
|
|
- name: Create Confluence configuration
|
|
template:
|
|
src: confluence.cfg.xml.j2
|
|
dest: "{{ atl_product_home }}/confluence.cfg.xml"
|
|
owner: "{{ atl_product_user }}"
|
|
group: "{{ atl_product_user }}"
|
|
|
|
|
|
- name: Limit permissions on the installation directory
|
|
file:
|
|
path: "{{ atl_product_installation_versioned }}"
|
|
owner: "root"
|
|
group: "root"
|
|
mode: "u=rwX,g=rX,o=rX"
|
|
recurse: true
|
|
with_items:
|
|
- "{{ atl_installer_temp }}"
|
|
- "{{ atl_product_installation_versioned }}"
|
|
- "{{ atl_product_version_cache_dir }}"
|
|
changed_when: false # For Molecule idempotence check
|
|
|
|
- name: Grant access to the product working directories
|
|
file:
|
|
path: "{{ item }}"
|
|
state: directory
|
|
mode: "u=rwX,g=rX,o-rwx"
|
|
owner: "{{ atl_product_user }}"
|
|
group: "{{ atl_product_user }}"
|
|
recurse: true
|
|
with_items:
|
|
- "{{ atl_product_installation_versioned }}/logs"
|
|
- "{{ atl_product_installation_versioned }}/temp"
|
|
- "{{ atl_product_installation_versioned }}/work"
|
|
changed_when: false # For Molecule idempotence check
|