aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/hash.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/definitions/hash.pp')
-rw-r--r--manifests/definitions/hash.pp32
1 files changed, 32 insertions, 0 deletions
diff --git a/manifests/definitions/hash.pp b/manifests/definitions/hash.pp
index e012458..bb4156a 100644
--- a/manifests/definitions/hash.pp
+++ b/manifests/definitions/hash.pp
@@ -1,5 +1,37 @@
+/*
+== Definition: postfix::hash
+
+Creates postfix hashed "map" files. It will create "${name}", and then build
+"${name}.db" using the "postmap" command. The map file can then be referred to
+using postfix::config.
+
+Note: the content of the file is not managed by this definition.
+
+Parameters:
+- *name*: the name of the map file.
+- *ensure*: present/absent
+
+Requires:
+- Class["postfix"]
+
+Example usage:
+
+ node "toto.example.com" {
+
+ include postfix
+
+ postfix::hash { "/etc/postfix/virtual":
+ ensure => present,
+ }
+ postfix::config { "virtual_alias_maps":
+ value => "hash:/etc/postfix/virtual"
+ }
+ }
+
+*/
define postfix::hash ($ensure) {
+ # selinux labels differ from one distribution to another
case $operatingsystem {
RedHat: {