mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-13 16:33:08 -06:00
DCD-386: Add role to mount NFS server on nodes.
This commit is contained in:
@@ -11,6 +11,6 @@
|
|||||||
roles:
|
roles:
|
||||||
- role: linux_common
|
- role: linux_common
|
||||||
- role: aws_common
|
- role: aws_common
|
||||||
- role: aws_efs_config
|
- role: nfs_mount
|
||||||
- role: product_common
|
- role: product_common
|
||||||
- role: product_install
|
- role: product_install
|
||||||
|
|||||||
@@ -86,3 +86,5 @@ atl_tomcat_protocol: "{{ lookup('env', 'ATL_TOMCAT_PROTOCOL') or 'HTTP/1.1' }}"
|
|||||||
atl_tomcat_redirectport: "{{ lookup('env', 'ATL_TOMCAT_REDIRECTPORT') or '' }}"
|
atl_tomcat_redirectport: "{{ lookup('env', 'ATL_TOMCAT_REDIRECTPORT') or '' }}"
|
||||||
atl_tomcat_scheme: "{{ lookup('env', 'ATL_TOMCAT_SCHEME') or 'http' }}"
|
atl_tomcat_scheme: "{{ lookup('env', 'ATL_TOMCAT_SCHEME') or 'http' }}"
|
||||||
atl_tomcat_secure: "{{ lookup('env', 'ATL_TOMCAT_SECURE') or 'false' }}"
|
atl_tomcat_secure: "{{ lookup('env', 'ATL_TOMCAT_SECURE') or 'false' }}"
|
||||||
|
|
||||||
|
atl_fileserver_host: "{{ lookup('env', 'ATL_FILESERVER_IP') }}"
|
||||||
|
|||||||
17
roles/nfs_mount/tasks/main.yml
Normal file
17
roles/nfs_mount/tasks/main.yml
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
- name: Create mountpoint
|
||||||
|
file:
|
||||||
|
state: directory
|
||||||
|
path: "{{ atl_shared_mountpoint }}"
|
||||||
|
mode: 0755
|
||||||
|
owner: "{{ atl_product_user }}"
|
||||||
|
group: "{{ atl_product_user }}"
|
||||||
|
|
||||||
|
- name: Enable mountpoint in fstab
|
||||||
|
mount:
|
||||||
|
path: "{{ atl_shared_mountpoint }}"
|
||||||
|
src: "{{ atl_fileserver_host }}:{{ atl_shared_mountpoint }}"
|
||||||
|
fstype: nfs
|
||||||
|
opts: "rw,nfsvers=4,_netdev"
|
||||||
|
state: mounted
|
||||||
Reference in New Issue
Block a user