summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2015-12-10 15:38:25 -0500
committerMicah <micah@leap.se>2015-12-15 15:45:21 -0500
commit583ce5e8f3b548f17fb3f9a48156edeba381e260 (patch)
treea5e10807d9f3e6a91f38ac3c590cefe18995d0da
parent0edaa5c1fb65a8c3d69b51c6b76bba8d7f9152f0 (diff)
Make sure /var/mail/leap-mx/Maildir and its associated common maildir
directories are managed by the platform (#6936) Change-Id: I1836eb728c0379b6175ae6d54231a6f6a7ae1033
-rw-r--r--puppet/modules/leap_mx/manifests/init.pp37
1 files changed, 31 insertions, 6 deletions
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';
}
#