Quellcode durchsuchen

Add mailserver default vars to role

Allen Riddell vor 8 Jahren
Ursprung
Commit
ca6eb2d85b
2 geänderte Dateien mit 60 neuen und 0 gelöschten Zeilen
  1. 31
    0
      group_vars/sovereign
  2. 29
    0
      roles/mailserver/defaults/main.yml

+ 31
- 0
group_vars/sovereign Datei anzeigen

@@ -2,3 +2,34 @@
2 2
 # ------------------
3 3
 # domain: (required)
4 4
 # main_user_name: (required)
5
+
6
+# admin email
7
+# -----------
8
+# fail2ban reports will be sent to this address
9
+# admin_email: "{{ main_user_name }}@{{ domain }}"
10
+
11
+# mail
12
+# ----
13
+# mail_virtual_domains:
14
+#   - name: "{{ domain }}"
15
+#     pk_id: 1
16
+# mail_virtual_users:
17
+#   - account: "{{ main_user_name }}"
18
+#     domain: "{{ domain }}"
19
+#     password_hash: TODO
20
+#     domain_pk_id: 1
21
+# mail_virtual_aliases:
22
+#   - source: "root@{{ domain }}"
23
+#     destination: "{{ admin_email }}"
24
+#     domain_pk_id: 1
25
+#   - source: "postmaster@{{ domain }}"
26
+#     destination: "{{ admin_email }}"
27
+#     domain_pk_id: 1
28
+#   - source: "webmaster@{{ domain }}"
29
+#     destination: "{{ admin_email }}"
30
+#     domain_pk_id: 1
31
+
32
+# timezone
33
+# --------
34
+# common_timezone will be used in the common and mailserver roles
35
+# common_timezone: 'Etc/UTC'

+ 29
- 0
roles/mailserver/defaults/main.yml Datei anzeigen

@@ -0,0 +1,29 @@
1
+secret_root: '{{ inventory_dir | realpath }}'
2
+secret_name: 'secret'
3
+secret: '{{ secret_root + "/" + secret_name }}'
4
+
5
+db_admin_username: 'postgres'
6
+db_admin_password: "{{ lookup('password', secret + '/' + 'db_admin_password', length=32) }}"
7
+
8
+mail_db_username: 'mailuser'
9
+mail_db_password: "{{ lookup('password', secret + '/' + 'mail_db_password', length=32) }}"
10
+mail_db_database: 'mailserver'
11
+
12
+mail_server_hostname: "mail.{{ domain }}"
13
+mail_server_autoconfig_hostname: "autoconfig.{{ domain }}"
14
+mail_header_privacy: 1
15
+
16
+# virtual domains
17
+mail_virtual_domains: []
18
+mail_virtual_users: []
19
+mail_virtual_aliases: []
20
+
21
+# opendmarc
22
+mail_db_opendmarc_username: opendmarc
23
+mail_db_opendmarc_database: opendmarc
24
+mail_db_opendmarc_password: "{{ lookup('password', secret + '/' + 'mail_db_opendmarc_password', length=32) }}"
25
+
26
+# zpush
27
+zpush_version: 2.1.1-1788
28
+# common_timezone is a sovereign variable
29
+zpush_timezone: "{{ common_timezone|default('Etc/UTC') }}"

Laden…
Abbrechen
Speichern