Parameters:
- *name*: the name of the map file.
-- *ensure*: present/absent
+- *ensure*: present/absent, defaults to present
Requires:
- Class["postfix"]
}
*/
-define postfix::hash ($ensure) {
+define postfix::hash ($ensure="present") {
# selinux labels differ from one distribution to another
case $operatingsystem {
Parameters:
- *name*: name of address postfix will lookup. See transport(5).
- *destination*: where the emails will be delivered to. See transport(5).
-- *ensure*: present/absent
+- *ensure*: present/absent, defaults to present.
Requires:
- Class["postfix"]
}
*/
-define postfix::transport ($ensure, $destination) {
+define postfix::transport ($ensure="present", $destination) {
line {"${name} ${destination}":
- ensure => present,
+ ensure => $ensure,
file => "/etc/postfix/transport",
line => "${name} ${destination}",
notify => Exec["generate /etc/postfix/transport.db"],
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
+- *ensure*: present/absent, defaults to present.
Requires:
- Class["postfix"]
}
*/
-define postfix::virtual ($ensure, $destination) {
+define postfix::virtual ($ensure="present", $destination) {
line {"${name} ${destination}":
- ensure => present,
+ ensure => $ensure,
file => "/etc/postfix/virtual",
line => "${name} ${destination}",
notify => Exec["generate /etc/postfix/virtual.db"],