summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2015-12-08 14:54:33 -0500
committerMicah <micah@leap.se>2015-12-08 14:54:33 -0500
commit40968b97e8a01957667d12fe627a1a194d57be77 (patch)
tree309d9b6ff0a7d6b5b06d4ed8712e6206ef7e35b7
parent9cf371a397839723bba06018db003ed8e78e5694 (diff)
Manage the /var/mail/leap-mx directory to ensure it exists properly and
has the right permissions (see #6936) Change-Id: Ib7b86d73197fecfd74b72fe5ff06d1a78d9d4432
-rw-r--r--puppet/modules/leap_mx/manifests/init.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/puppet/modules/leap_mx/manifests/init.pp b/puppet/modules/leap_mx/manifests/init.pp
index 70d2c2d4..055a57ef 100644
--- a/puppet/modules/leap_mx/manifests/init.pp
+++ b/puppet/modules/leap_mx/manifests/init.pp
@@ -40,6 +40,14 @@ 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'],
+ }
+
#
# LEAP-MX CONFIG
#