diff options
author | Micah <micah@leap.se> | 2015-12-10 15:38:25 -0500 |
---|---|---|
committer | Micah <micah@leap.se> | 2015-12-15 15:45:21 -0500 |
commit | 583ce5e8f3b548f17fb3f9a48156edeba381e260 (patch) | |
tree | a5e10807d9f3e6a91f38ac3c590cefe18995d0da /puppet/modules | |
parent | 0edaa5c1fb65a8c3d69b51c6b76bba8d7f9152f0 (diff) |
Make sure /var/mail/leap-mx/Maildir and its associated common maildir
directories are managed by the platform (#6936)
Change-Id: I1836eb728c0379b6175ae6d54231a6f6a7ae1033
Diffstat (limited to 'puppet/modules')
-rw-r--r-- | puppet/modules/leap_mx/manifests/init.pp | 37 |
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'; } # |