From 81f289a185d866b05ca719756e59404bc02a5865 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 1 Nov 2025 01:01:55 +1100 Subject: [PATCH] feat: prepare for dovecot deployment (#415) - add dovecot role - import dovecot module via r10k Reviewed-on: https://git.unkin.net/unkin/puppet-prod/pulls/415 --- Puppetfile | 1 + site/roles/manifests/infra/mail/backend.pp | 10 ++++++++++ 2 files changed, 11 insertions(+) create mode 100644 site/roles/manifests/infra/mail/backend.pp diff --git a/Puppetfile b/Puppetfile index f02f52b..08db94b 100644 --- a/Puppetfile +++ b/Puppetfile @@ -63,6 +63,7 @@ mod 'rehan-mkdir', '2.0.0' mod 'tailoredautomation-patroni', '2.0.0' mod 'ssm-crypto_policies', '0.3.3' mod 'thias-sysctl', '1.0.8' +mod 'cirrax-dovecot', '1.3.3' mod 'bind', :git => 'https://git.service.au-syd1.consul/unkinben/puppet-bind.git', diff --git a/site/roles/manifests/infra/mail/backend.pp b/site/roles/manifests/infra/mail/backend.pp new file mode 100644 index 0000000..c13b141 --- /dev/null +++ b/site/roles/manifests/infra/mail/backend.pp @@ -0,0 +1,10 @@ +# a role to deploy a imap/pop3 backend for mail services +class roles::infra::mail::backend { + if $facts['firstrun'] { + include profiles::defaults + include profiles::firstrun::init + }else{ + include profiles::defaults + include profiles::base + } +}