From 583ce5e8f3b548f17fb3f9a48156edeba381e260 Mon Sep 17 00:00:00 2001 From: Micah Date: Thu, 10 Dec 2015 15:38:25 -0500 Subject: Make sure /var/mail/leap-mx/Maildir and its associated common maildir directories are managed by the platform (#6936) Change-Id: I1836eb728c0379b6175ae6d54231a6f6a7ae1033 --- puppet/modules/leap_mx/manifests/init.pp | 37 ++++++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 6 deletions(-) (limited to 'puppet') diff --git a/puppet/modules/leap_mx/manifests/init.pp b/puppet/modules/leap_mx/manifests/init.pp index 5c356315..50bc8a18 100644 --- a/puppet/modules/leap_mx/manifests/init.pp +++ b/puppet/modules/leap_mx/manifests/init.pp @@ -40,12 +40,37 @@ class leap_mx { require => Group['leap-mx']; } - file { '/var/mail/leap-mx': - ensure => directory, - owner => 'leap-mx', - group => 'leap-mx', - mode => '0755', - require => User['leap-mx'], + file { + '/var/mail/leap-mx': + ensure => directory, + owner => 'leap-mx', + group => 'leap-mx', + mode => '0755', + require => User['leap-mx']; + + '/var/mail/leap-mx/Maildir': + ensure => directory, + owner => 'leap-mx', + group => 'leap-mx', + mode => '0700'; + + '/var/mail/leap-mx/Maildir/new': + ensure => directory, + owner => 'leap-mx', + group => 'leap-mx', + mode => '0700'; + + '/var/mail/leap-mx/Maildir/cur': + ensure => directory, + owner => 'leap-mx', + group => 'leap-mx', + mode => '0700'; + + '/var/mail/leap-mx/Maildir/tmp': + ensure => directory, + owner => 'leap-mx', + group => 'leap-mx', + mode => '0700'; } # -- cgit v1.2.3