AZURE-210 Deploy Crowd DC to Azure

This commit is contained in:
dbacon
2020-05-19 11:13:11 +01:00
parent 0fbc7609a1
commit e78af09b8b
37 changed files with 1396 additions and 200 deletions

View File

@@ -0,0 +1,9 @@
---
az_storage_account: "{{ lookup('env', 'AZ_STORAGE_ACCOUNT') }}"
az_storage_key: "{{ lookup('env', 'AZ_STORAGE_KEY') }}"
efs_target: "//{{ az_storage_account }}.file.core.windows.net"
efs_type: "cifs"
efs_src_dir: "{{ lookup('env', 'ATL_CROWD_SHARED_HOME_NAME') or 'crowd-home' }}"
efs_mount_options: "vers=3.0,uid=0,gid=0,dir_mode=0777,file_mode=077,username={{ az_storage_account }},password={{ az_storage_key }}"

View File

@@ -0,0 +1,3 @@
---
dependencies:
- az_common

View File

@@ -0,0 +1,15 @@
---
- name: Create mountpoint
file:
state: directory
path: "{{ atl_shared_mountpoint }}"
mode: 0755
- name: Enable mountpoint in fstab
mount:
path: "{{ atl_shared_mountpoint }}"
src: "{{ efs_target }}/{{ efs_src_dir }}"
fstype: "{{ efs_type }}"
opts: "{{ efs_mount_options }}"
state: mounted