From d150dfe053413e9c9d92ef4b6620e56463d51e99 Mon Sep 17 00:00:00 2001 From: Ben Vincent Date: Sat, 1 Nov 2025 00:52:45 +1100 Subject: [PATCH] feat: prepare for dovecot deployment - add dovecot role - import dovecot module via r10k --- 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 b559a1b..4b2341b 100644 --- a/Puppetfile +++ b/Puppetfile @@ -60,6 +60,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 + } +}