aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/config.pp
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2009-08-28 11:15:35 +0200
committerMarc Fournier <marc.fournier@camptocamp.com>2009-08-28 11:15:35 +0200
commit1c249d42e9d14f756d52044c74f0bc08914cc876 (patch)
tree21d5fe86171797350b89dfbcdee2ebe362dced28 /manifests/definitions/config.pp
parente597522fbf605400988726f1ccbc80d60b1de39b (diff)
downloadpuppet-postfix-1c249d42e9d14f756d52044c74f0bc08914cc876.tar.gz
puppet-postfix-1c249d42e9d14f756d52044c74f0bc08914cc876.tar.bz2
postfix: added/reformated documentation
Diffstat (limited to 'manifests/definitions/config.pp')
-rw-r--r--manifests/definitions/config.pp31
1 files changed, 31 insertions, 0 deletions
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: {