summaryrefslogtreecommitdiff
path: root/puppet/modules/postfix/manifests/header_checks.pp
diff options
context:
space:
mode:
authorMicah <micah@leap.se>2016-05-24 10:19:37 -0400
committerMicah <micah@leap.se>2016-05-24 10:19:37 -0400
commit38ac177664f763f08153239992568f1aad04c89b (patch)
tree3bb398154ea70b4320f4b4597a8aba8b83a9cf19 /puppet/modules/postfix/manifests/header_checks.pp
parent93ff36e36236542e6b2a35b0c03a69623662a298 (diff)
parent6570cad05280d8fc9c9c22a403e1dc234ca6ab25 (diff)
Merge commit '6570cad05280d8fc9c9c22a403e1dc234ca6ab25' as 'puppet/modules/postfix'
Diffstat (limited to 'puppet/modules/postfix/manifests/header_checks.pp')
-rw-r--r--puppet/modules/postfix/manifests/header_checks.pp32
1 files changed, 32 insertions, 0 deletions
diff --git a/puppet/modules/postfix/manifests/header_checks.pp b/puppet/modules/postfix/manifests/header_checks.pp
new file mode 100644
index 00000000..5b0c3c86
--- /dev/null
+++ b/puppet/modules/postfix/manifests/header_checks.pp
@@ -0,0 +1,32 @@
+#
+# == Class: postfix::header_checks
+#
+# Manages Postfix header_checks by merging snippets configured
+# via postfix::header_checks_snippet defines
+#
+# Note that this class is useless when used directly.
+# The postfix::header_checks_snippet defines takes care of importing
+# it anyway.
+#
+class postfix::header_checks {
+
+ concat { '/etc/postfix/header_checks':
+ owner => root,
+ group => root,
+ mode => '0600',
+ }
+
+ postfix::config { "header_checks":
+ value => 'regexp:/etc/postfix/header_checks',
+ require => Concat['/etc/postfix/header_checks'],
+ }
+
+ # Cleanup previous implementation's internal files
+ include common::moduledir
+ file { "${common::moduledir::module_dir_path}/postfix/header_checks":
+ ensure => absent,
+ recurse => true,
+ force => true,
+ }
+
+}