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/config.pp | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'manifests/definitions/config.pp') diff --git a/manifests/definitions/config.pp b/manifests/definitions/config.pp index 58fc590..aaf73b5 100644 --- a/manifests/definitions/config.pp +++ b/manifests/definitions/config.pp @@ -1,3 +1,34 @@ +/* +== Definition: postfix::config + +Uses the "postconf" command to add/alter/remove options in postfix main +configuation file (/etc/postfix/main.cf). + +Parameters: +- *name*: name of the parameter. +- *ensure*: present/absent. defaults to present. +- *value*: value of the parameter. +- *nonstandard*: inform postfix::config that this parameter is not recognized + by the "postconf" command. defaults to false. + +Requires: +- Class["postfix"] + +Example usage: + + node "toto.example.com" { + + include postfix + + postfix::config { + "smtp_use_tls" => "yes"; + "smtp_sasl_auth_enable" => "yes"; + "smtp_sasl_password_maps" => "hash:/etc/postfix/my_sasl_passwords"; + "relayhost" => "[mail.example.com]:587"; + } + } + +*/ define postfix::config ($ensure = present, $value, $nonstandard = false) { case $ensure { present: { -- cgit v1.2.3