aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/virtual.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/virtual.pp
parente597522fbf605400988726f1ccbc80d60b1de39b (diff)
downloadpuppet-postfix-1c249d42e9d14f756d52044c74f0bc08914cc876.tar.gz
puppet-postfix-1c249d42e9d14f756d52044c74f0bc08914cc876.tar.bz2
postfix: added/reformated documentation
Diffstat (limited to 'manifests/definitions/virtual.pp')
-rw-r--r--manifests/definitions/virtual.pp35
1 files changed, 35 insertions, 0 deletions
diff --git a/manifests/definitions/virtual.pp b/manifests/definitions/virtual.pp
index 7511340..c40e64b 100644
--- a/manifests/definitions/virtual.pp
+++ b/manifests/definitions/virtual.pp
@@ -1,3 +1,38 @@
+/*
+== Definition: postfix::virtual
+
+Manages content of the /etc/postfix/virtual map.
+
+Parameters:
+- *name*: name of address postfix will lookup. See virtual(8).
+- *destination*: where the emails will be delivered to. See virtual(8).
+- *ensure*: present/absent
+
+Requires:
+- Class["postfix"]
+- Postfix::Hash["/etc/postfix/virtual"]
+- Postfix::Config["virtual_alias_maps"]
+- common::line (from module common)
+
+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"
+ }
+ postfix::virtual { "user@example.com":
+ ensure => present,
+ destination => "root",
+ }
+ }
+
+*/
define postfix::virtual ($ensure, $destination) {
line {"${name} ${destination}":
ensure => present,