new concat no longer works with source => <file> on jessie hosts. Switch to content...
authorPeter Palfrader <peter@palfrader.org>
Thu, 31 Aug 2017 21:43:52 +0000 (21:43 +0000)
committerPeter Palfrader <peter@palfrader.org>
Thu, 31 Aug 2017 21:43:52 +0000 (21:43 +0000)
modules/exim/files/virtualdomains.header [deleted file]
modules/exim/manifests/vdomain/setup.pp
modules/exim/templates/virtualdomains.header.erb [new file with mode: 0644]

diff --git a/modules/exim/files/virtualdomains.header b/modules/exim/files/virtualdomains.header
deleted file mode 100644 (file)
index a1befa1..0000000
+++ /dev/null
@@ -1,19 +0,0 @@
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
-##
-
-# This file lists the virtual domains that this host should handle. The
-# format is
-#  host: user=user group=group directory=dir
-# Host may be a wildcard.
-# User/Group are the symbolic names of the uid/gid to operate under when
-#    performing deliveries for this name. These should not be root!
-# Directory is the directory to look in for data files. The directory and
-#    files may be group writable. The first file to lookup is DIR/aliases
-#    which is a traditional exim/sendmail alias file. You can specify
-#    users, patterns, pipes and filenames. If that fails then
-#    .forward-foo is tried, should that fail then .forward-default is tried.
-#    Finally the email will bounce.
-
-
index 2765fba..1433887 100644 (file)
@@ -9,7 +9,7 @@ class exim::vdomain::setup {
 
        concat::fragment { 'virtualdomains_header':
                target => '/etc/exim4/virtualdomains',
-               source => 'puppet:///modules/exim/virtualdomains.header',
+               content => template('exim/virtualdomains.header.erb'),
                order  => '00',
        }
 }
diff --git a/modules/exim/templates/virtualdomains.header.erb b/modules/exim/templates/virtualdomains.header.erb
new file mode 100644 (file)
index 0000000..a1befa1
--- /dev/null
@@ -0,0 +1,19 @@
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
+##
+
+# This file lists the virtual domains that this host should handle. The
+# format is
+#  host: user=user group=group directory=dir
+# Host may be a wildcard.
+# User/Group are the symbolic names of the uid/gid to operate under when
+#    performing deliveries for this name. These should not be root!
+# Directory is the directory to look in for data files. The directory and
+#    files may be group writable. The first file to lookup is DIR/aliases
+#    which is a traditional exim/sendmail alias file. You can specify
+#    users, patterns, pipes and filenames. If that fails then
+#    .forward-foo is tried, should that fail then .forward-default is tried.
+#    Finally the email will bounce.
+
+