vdomain: do not create and/or mess with the modes of basedir
authorPeter Palfrader <peter@palfrader.org>
Sun, 22 Sep 2019 07:57:55 +0000 (09:57 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 22 Sep 2019 07:57:55 +0000 (09:57 +0200)
modules/exim/manifests/vdomain.pp

index ef339dd..ef3c018 100644 (file)
@@ -4,25 +4,16 @@
 # @param mail_group Group to run the virtual email domain's pipe jobs and deliveries as
 # @param owner      User to own the directories and files
 # @param group      Group to own the directories and files
-# @param domain   email domain (defaults to $name)
-# @param basedir  Base directory (it gets created), usually is and defaults to /srv/$name
-# @param maildir  Mail directory, usually under base and defaults to $basedir/mail
+# @param domain     email domain (defaults to $name)
+# @param maildir    Mail directory, usually and defaults to /srv/$name/mail
 define exim::vdomain (
   String $domain = $name,
-  String $basedir = "/srv/${name}",
-  String $maildir = "${basedir}/mail",
+  String $maildir = "/srv/${name}/mail",
   String $owner = 'root',
   String $group = 'root',
   String $mail_user = $owner,
   String $mail_group = $group,
 ) {
-  file { $basedir:
-    ensure => directory,
-    mode   => '2755',
-    owner  => $owner,
-    group  => $group,
-  }
-
   file { $maildir:
     ensure => directory,
     mode   => '2755',