From 1c249d42e9d14f756d52044c74f0bc08914cc876 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Fri, 28 Aug 2009 11:15:35 +0200 Subject: postfix: added/reformated documentation --- manifests/definitions/hash.pp | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'manifests/definitions/hash.pp') 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: { -- cgit v1.2.3