Manage global Postfix'es + make common pillar OS based #2

Merged
Georg merged 4 commits from postfix into production 2023-01-24 21:26:04 +01:00
4 changed files with 26 additions and 0 deletions
Showing only changes of commit 6c7aaa08e1 - Show all commits

19
pillar/common/postfix.sls Normal file
View File

@ -0,0 +1,19 @@
postfix:
master_config:
services:
smtp:
enable: False
config:
# to-do: set via site config
relayhost: zz0.email
myhostname: {{ grains['fqdn'] }}
inet_interfaces: loopback-only
# to-do: support relay via IPv6
inet_protocols: ipv4
alias_maps: lmdb:/etc/aliases
smtpd_use_tls: 'no'
smtp_use_tls: 'yes'
smtp_tls_security_level: encrypt
smtp_tls_wrappermode: 'yes'

View File

@ -1,3 +1,6 @@
include:
- .postfix
zypper:
refreshdb_force: False

3
salt/common/postfix.sls Normal file
View File

@ -0,0 +1,3 @@
include:
- postfix
- postfix.config

View File

@ -3,6 +3,7 @@ include:
- profile.zypp
- profile.node_exporter
- users
- .postfix
{#- to-do: move this to some formula or macro -#}
{%- set osfullname = grains['osfullname'] -%}