forked from klausmeyer/ansible-mailserver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
38 lines (35 loc) · 1.24 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "debian/buster64"
config.vm.network "forwarded_port", guest: 25, host: 1025 # SMTP
config.vm.network "forwarded_port", guest: 143, host: 1143 # IMAP
config.vm.network "forwarded_port", guest: 993, host: 1993 # IMAPS
config.vm.provision "ansible" do |ansible|
ansible.playbook = "provisioning/playbook.yml"
ansible.compatibility_mode = "2.0"
ansible.become = true
ansible.extra_vars = {
ssl_cert: "/etc/ssl/certs/ssl-cert-snakeoil.pem",
ssl_key: "/etc/ssl/private/ssl-cert-snakeoil.key",
inwx_username: "homersimpson",
inwx_password: "nucular",
letsencrypt_domain: "example.com",
letsencrypt_subdomain: "mail",
mysql_password: "sup3rse3cr3t",
mailname: "mail.example.com",
mail_domains: ["example.com"],
mail_users: [{
username: "[email protected]",
password: "swordfish-a"
}, {
username: "[email protected]",
password: "swordfish-b"
}],
mail_aliases: [
{ source: '[email protected]', destination: '[email protected]' },
{ source: '[email protected]', destination: '[email protected]' }
]
}
end
end