aboutsummaryrefslogtreecommitdiffstats
path: root/modules/opendkim/manifests/trusted.pp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/opendkim/manifests/trusted.pp')
-rw-r--r--modules/opendkim/manifests/trusted.pp13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/opendkim/manifests/trusted.pp b/modules/opendkim/manifests/trusted.pp
new file mode 100644
index 00000000..dcf0f8b8
--- /dev/null
+++ b/modules/opendkim/manifests/trusted.pp
@@ -0,0 +1,13 @@
+define opendkim::trusted (
+ $host = $name,
+ $trusted_hosts = 'TrustedHosts',
+
+) {
+ # Add line into KeyTable
+ file_line { "${opendkim::pathconf}/${trusted_hosts}_${host}":
+ path => "${opendkim::pathconf}/${trusted_hosts}",
+ line => $host,
+ notify => Service[$opendkim::service_name],
+ require => Package[$opendkim::package_name],
+ }
+}