aboutsummaryrefslogtreecommitdiff
path: root/manifests/definitions/virtual.pp
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2008-12-03 17:53:28 +0100
committerMarc Fournier <marc.fournier@camptocamp.com>2008-12-03 17:53:28 +0100
commit28df18c79fb71407af663ee9b3c214094e1551f1 (patch)
treeca379d7992fe56a3ca79f116c05c0558f858217b /manifests/definitions/virtual.pp
downloadpuppet-postfix-28df18c79fb71407af663ee9b3c214094e1551f1.tar.gz
puppet-postfix-28df18c79fb71407af663ee9b3c214094e1551f1.tar.bz2
Initial import from bzr into github.
Diffstat (limited to 'manifests/definitions/virtual.pp')
-rw-r--r--manifests/definitions/virtual.pp8
1 files changed, 8 insertions, 0 deletions
diff --git a/manifests/definitions/virtual.pp b/manifests/definitions/virtual.pp
new file mode 100644
index 0000000..950107c
--- /dev/null
+++ b/manifests/definitions/virtual.pp
@@ -0,0 +1,8 @@
+define postfix-ng::virtual ($ensure, $destination) {
+ line {"${name} ${destination}":
+ ensure => present,
+ file => "/etc/postfix/virtual",
+ line => "${name} ${destination}",
+ notify => Exec["generate /etc/postfix/virtual.db"],
+ }
+}