feat(mail): enhance mail configuration with getmail and dovecot settings
- Added getmail configuration generation using template files. - Introduced postfix and dovecot configuration checksums for deployment. - Created new dovecot configuration file and sieve script for email handling. - Updated main.tf to utilize local variables for configuration management. - Removed redundant external password hasher from main.tf. feat(nginx): improve nginx configuration management - Centralized nginx configuration into a local variable with checksum. - Created separate config maps for default website configurations. - Updated deployment to utilize new configuration structure. feat(sftpgo): add SFTPGo application deployment - Introduced SFTPGo with Kubernetes resources including namespace, config maps, and secrets. - Configured SFTPGo with SMTP settings and AWS credentials. - Implemented health checks and volume mounts for persistent storage. refactor(seafile): remove Seafile module - Deleted Seafile module and associated resources as part of cleanup.
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
---
|
||||
- name: SFTPGo Playbook (K8s)
|
||||
hosts: sftpgo
|
||||
gather_facts: true
|
||||
|
||||
# Specific tasks for this playbook
|
||||
tasks:
|
||||
- name: Set required facts
|
||||
ansible.builtin.set_fact:
|
||||
sftpgo_home: "{{ persistent_data | default('/var/lib') }}/sftpgo"
|
||||
sftpgo_mysql_home: "{{ database_path | default('/var/lib') }}/mysql.sftpgo"
|
||||
sftpgo_user_id: 1000
|
||||
sftpgo_group_id: 1000
|
||||
mysql_user_id: 999
|
||||
mysql_group_id: 107
|
||||
tags: always
|
||||
|
||||
- name: Create required sftpgo data folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ sftpgo_home }}"
|
||||
mode: "0750"
|
||||
owner: "{{ sftpgo_user_id }}"
|
||||
group: "{{ sftpgo_group_id }}"
|
||||
tags:
|
||||
- tasks
|
||||
- tasks::folders
|
||||
|
||||
- name: Create required mysql data folder
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
state: directory
|
||||
path: "{{ sftpgo_mysql_home }}"
|
||||
mode: "0755"
|
||||
owner: "{{ mysql_user_id }}"
|
||||
group: "{{ mysql_group_id }}"
|
||||
tags:
|
||||
- tasks
|
||||
- tasks::folders
|
||||
Reference in New Issue
Block a user