mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
ITOPS-2059 using more lookups, which I may not need to be using if we're already using ansible-with-atl-env
This commit is contained in:
@@ -1,2 +1,5 @@
|
|||||||
---
|
---
|
||||||
efs_target: "{{ atl_efs_id }}"
|
efs_target: "{{ atl_efs_id }}"
|
||||||
|
efs_type: "{{ lookup('env', 'ATL_EFS_TYPE') or 'efs' }}"
|
||||||
|
efs_src_dir: "{{ lookup('env', 'ATL_EFS_SRC_DIR') or '/' }}"
|
||||||
|
efs_mount_options: "{{ lookup('env', 'ATL_EFS_MOUNT_OPTIONS') or 'defaults,_netdev' }}"
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
- name: Enable mountpoint in fstab
|
- name: Enable mountpoint in fstab
|
||||||
mount:
|
mount:
|
||||||
path: "{{ atl_shared_mountpoint }}"
|
path: "{{ atl_shared_mountpoint }}"
|
||||||
src: "{{ efs_target }}:/"
|
src: "{{ efs_target }}:{{ efs_src_dir }}"
|
||||||
fstype: efs
|
fstype: "{{ efs_type }}"
|
||||||
opts: "defaults,_netdev"
|
opts: "{{ efs_mount_options }}"
|
||||||
state: mounted
|
state: mounted
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
insertafter: "EOF"
|
insertafter: "EOF"
|
||||||
line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"'
|
line: 'export CATALINA_OPTS="${CATALINA_OPTS} {{ atl_catalina_opts }} {{ atl_catalina_opts_extra }}"'
|
||||||
|
|
||||||
- name: Set JAVA_HOME
|
- name: Set JAVA_HOME #FIXME
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
path: "{{ atl_product_installation_versioned }}/apache-tomcat/bin/setenv.sh"
|
||||||
insertafter: "EOF"
|
insertafter: "EOF"
|
||||||
|
|||||||
Reference in New Issue
Block a user