Parameterise hostnames in exim4 satellite setup.
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
hostinfo:
|
||||
hostname: hedwig
|
||||
hostname_fqdn: hedwig.lunch.org.uk
|
||||
@@ -0,0 +1,3 @@
|
||||
hostinfo:
|
||||
hostname: scabbers
|
||||
hostname_fqdn: scabbers.lunch.org.uk
|
||||
@@ -0,0 +1,3 @@
|
||||
hostinfo:
|
||||
hostname: social
|
||||
hostname_fqdn: social.lunch.org.uk
|
||||
@@ -1,9 +1,11 @@
|
||||
base:
|
||||
'hedwig.lunch.org.uk':
|
||||
- hostinfo/hedwig
|
||||
- secrets/certificates
|
||||
- secrets/mariadb
|
||||
- secrets/wordpress
|
||||
'scabbers.lunch.org.uk':
|
||||
- hostinfo/scabbers
|
||||
- secrets/dkim
|
||||
- secrets/dnsapi
|
||||
- secrets/gitea
|
||||
@@ -12,3 +14,6 @@ base:
|
||||
- secrets/webmail
|
||||
- secrets/mariadb
|
||||
- secrets/dmarcts
|
||||
'social':
|
||||
- hostinfo/social
|
||||
- secrets/certificates
|
||||
|
||||
@@ -6,5 +6,5 @@ FIRST_USER_ACCOUNT_UID=1000
|
||||
|
||||
# TLS configuration
|
||||
MAIN_TLS_ENABLE=true
|
||||
MAIN_TLS_CERTIFICATE=/var/local/certificates/hedwig.lunch.org.uk/fullchain.pem
|
||||
MAIN_TLS_PRIVATEKEY=/var/local/certificates/hedwig.lunch.org.uk/privkey.pem
|
||||
MAIN_TLS_CERTIFICATE=/var/local/certificates/{{ pillar['hostinfo']['hostname_fqdn'] }}/fullchain.pem
|
||||
MAIN_TLS_PRIVATEKEY=/var/local/certificates/{{ pillar['hostinfo']['hostname_fqdn'] }}/privkey.pem
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
# This is a Debian specific file
|
||||
|
||||
dc_eximconfig_configtype='satellite'
|
||||
dc_other_hostnames='hedwig.lunch.org.uk'
|
||||
dc_other_hostnames='{{ pillar['hostinfo']['hostname_fqdn'] }}'
|
||||
dc_local_interfaces='127.0.0.1 ; ::1'
|
||||
dc_readhost=''
|
||||
dc_relay_domains=''
|
||||
|
||||
@@ -8,6 +8,7 @@ exim4_conf:
|
||||
- dir_mode: '0755'
|
||||
- file_mode: '0644'
|
||||
- source: salt://email-satellite/exim4
|
||||
- template: jinja
|
||||
|
||||
exim4_update_conf:
|
||||
cmd.run:
|
||||
@@ -37,3 +38,4 @@ email_mailname:
|
||||
- names:
|
||||
- /etc/mailname:
|
||||
- source: salt://email-satellite/mailname
|
||||
- template: jinja
|
||||
|
||||
@@ -1 +1 @@
|
||||
hedwig.lunch.org.uk
|
||||
{{ pillar['hostinfo']['hostname_fqdn'] }}
|
||||
|
||||
Reference in New Issue
Block a user