WIP: misc: test infrastructure for mail

This commit is contained in:
jeltz 2023-12-17 15:47:06 +01:00
parent 887aadb5fe
commit 91d3087047
Signed by: jeltz
GPG key ID: 800882B66C0C3326
12 changed files with 76 additions and 1 deletions

View file

@ -102,6 +102,10 @@ firewall__zones:
addrs: addrs:
- 2a09:6840:128::150 - 2a09:6840:128::150
- 10.128.0.150 - 10.128.0.150
mx.test:
addrs:
- 2a09:6840:211::1:5
- 45.66.111.205
firewall__input: firewall__input:
- iif: - iif:
@ -146,6 +150,18 @@ firewall__forward:
protocols: protocols:
icmp: true icmp: true
verdict: accept verdict: accept
- dst: mx.test
protocols:
icmp: true
verdict: accept
- dst: mx.test
protocols:
tcp:
dport:
- 25
- 465
- 993
verdict: accept
# SNMP # SNMP
- src: monit - src: monit
dst: dst:

View file

@ -0,0 +1,12 @@
---
systemd_link__links:
ext0: ae:ae:ae:1d:c8:b2
ifupdown2__interfaces:
ext0:
addresses:
- 2a09:6840:211::1:5/64
- 10.211.1.5/16
- 45.66.111.205/30
gateways: "{{ ifupdown2__gateways.ext }}"
...

View file

@ -225,6 +225,10 @@ knotd__zones:
target: target:
- ns-1 - ns-1
- ns-2 - ns-2
- name: test
target:
- ns-1
- ns-2
- name: adm - name: adm
target: target:
- serge - serge
@ -246,7 +250,7 @@ knotd__zones:
preference: 5 preference: 5
- exchange: proxy-ovh - exchange: proxy-ovh
preference: 10 preference: 10
spf: txt:
- data: v=spf1 mx -all - data: v=spf1 mx -all
a: a:
- address: 92.222.211.195 - address: 92.222.211.195
@ -309,6 +313,31 @@ knotd__zones:
| combine(knotd__hosts['adh.auro.re'] | combine(knotd__hosts['adh.auro.re']
| add_origin_keys('adh.auro.re.')) }}" | add_origin_keys('adh.auro.re.')) }}"
test.auro.re:
dnssec_policy: public
notify:
- xfr-ns-1
- xfr-ns-2
acl:
- xfr
soa:
mname: ns-master.int.infra.auro.re.
txt:
- data: v=spf1 mx -all
- name: _dmarc
data: v=DMARC1;p=quarantine;pct=100;rua=mailto:postmaster@test.auro.re;ruf=mailto:postmaster@test.auro.re
ns:
- target:
- ns-1.auro.re.
- ns-2.auro.re.
mx:
- exchange: mx
preference: 5
hosts:
mx:
- 2a09:6840:211::1:5
- 45.66.111.205
infra.auro.re: infra.auro.re:
dnssec_policy: infra dnssec_policy: infra
notify: notify:
@ -444,6 +473,9 @@ knotd__zones:
ec-1.ups: ec-1.ups:
- 2a09:6840:201::3:2 - 2a09:6840:201::3:2
- 10.201.3.2 - 10.201.3.2
mx.test:
- 2a09:6840:211::1:5
- 10.211.1.5
108.66.45.in-addr.arpa: 108.66.45.in-addr.arpa:
dnssec_policy: ripe dnssec_policy: ripe

3
hosts
View file

@ -1,5 +1,8 @@
# Aurore servers inventory # Aurore servers inventory
[vm_test]
mx.test.infra.auro.re
[aruba] [aruba]
eb-1.acs.sw.infra.auro.re eb-1.acs.sw.infra.auro.re

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- pve_network - pve_network
- vm_test
- vm_network - vm_network
roles: roles:
- base_utils - base_utils

View file

@ -1,6 +1,7 @@
#!/usr/bin/env ansible-playbook #!/usr/bin/env ansible-playbook
--- ---
- hosts: - hosts:
- vm_test
- vm_network - vm_network
roles: roles:
- ifupdown2 - ifupdown2

View file

@ -36,6 +36,11 @@
acl: acl:
- notify-master - notify-master
master: xfr-master master: xfr-master
test.auro.re:
dnssec_validation: true
acl:
- notify-master
master: xfr-master
infra.auro.re: infra.auro.re:
dnssec_validation: true dnssec_validation: true
acl: acl:

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- pve_network - pve_network
- vm_test
- vm_network - vm_network
roles: roles:
- openssh_server - openssh_server

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- vm_network - vm_network
- vm_test
roles: roles:
- qemu_guest - qemu_guest
... ...

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- vm_network - vm_network
- vm_test
- pve_network - pve_network
roles: roles:
- resolvconf - resolvconf

View file

@ -2,6 +2,7 @@
--- ---
- hosts: - hosts:
- vm_network - vm_network
- vm_test
- pve_network - pve_network
roles: roles:
- root_account - root_account

View file

@ -11,6 +11,7 @@
- ldap - ldap
- isp - isp
- vpn - vpn
- vm_test
roles: roles:
- systemd_link - systemd_link
... ...