postfix: ensure had no default value in definitions.
This commit is contained in:
parent
1c249d42e9
commit
8a23f6d5b1
3 changed files with 8 additions and 8 deletions
|
@ -9,7 +9,7 @@ Note: the content of the file is not managed by this definition.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
- *name*: the name of the map file.
|
- *name*: the name of the map file.
|
||||||
- *ensure*: present/absent
|
- *ensure*: present/absent, defaults to present
|
||||||
|
|
||||||
Requires:
|
Requires:
|
||||||
- Class["postfix"]
|
- Class["postfix"]
|
||||||
|
@ -29,7 +29,7 @@ Example usage:
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
define postfix::hash ($ensure) {
|
define postfix::hash ($ensure="present") {
|
||||||
|
|
||||||
# selinux labels differ from one distribution to another
|
# selinux labels differ from one distribution to another
|
||||||
case $operatingsystem {
|
case $operatingsystem {
|
||||||
|
|
|
@ -6,7 +6,7 @@ Manages content of the /etc/postfix/transport map.
|
||||||
Parameters:
|
Parameters:
|
||||||
- *name*: name of address postfix will lookup. See transport(5).
|
- *name*: name of address postfix will lookup. See transport(5).
|
||||||
- *destination*: where the emails will be delivered to. See transport(5).
|
- *destination*: where the emails will be delivered to. See transport(5).
|
||||||
- *ensure*: present/absent
|
- *ensure*: present/absent, defaults to present.
|
||||||
|
|
||||||
Requires:
|
Requires:
|
||||||
- Class["postfix"]
|
- Class["postfix"]
|
||||||
|
@ -33,9 +33,9 @@ Example usage:
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
define postfix::transport ($ensure, $destination) {
|
define postfix::transport ($ensure="present", $destination) {
|
||||||
line {"${name} ${destination}":
|
line {"${name} ${destination}":
|
||||||
ensure => present,
|
ensure => $ensure,
|
||||||
file => "/etc/postfix/transport",
|
file => "/etc/postfix/transport",
|
||||||
line => "${name} ${destination}",
|
line => "${name} ${destination}",
|
||||||
notify => Exec["generate /etc/postfix/transport.db"],
|
notify => Exec["generate /etc/postfix/transport.db"],
|
||||||
|
|
|
@ -6,7 +6,7 @@ Manages content of the /etc/postfix/virtual map.
|
||||||
Parameters:
|
Parameters:
|
||||||
- *name*: name of address postfix will lookup. See virtual(8).
|
- *name*: name of address postfix will lookup. See virtual(8).
|
||||||
- *destination*: where the emails will be delivered to. See virtual(8).
|
- *destination*: where the emails will be delivered to. See virtual(8).
|
||||||
- *ensure*: present/absent
|
- *ensure*: present/absent, defaults to present.
|
||||||
|
|
||||||
Requires:
|
Requires:
|
||||||
- Class["postfix"]
|
- Class["postfix"]
|
||||||
|
@ -33,9 +33,9 @@ Example usage:
|
||||||
}
|
}
|
||||||
|
|
||||||
*/
|
*/
|
||||||
define postfix::virtual ($ensure, $destination) {
|
define postfix::virtual ($ensure="present", $destination) {
|
||||||
line {"${name} ${destination}":
|
line {"${name} ${destination}":
|
||||||
ensure => present,
|
ensure => $ensure,
|
||||||
file => "/etc/postfix/virtual",
|
file => "/etc/postfix/virtual",
|
||||||
line => "${name} ${destination}",
|
line => "${name} ${destination}",
|
||||||
notify => Exec["generate /etc/postfix/virtual.db"],
|
notify => Exec["generate /etc/postfix/virtual.db"],
|
||||||
|
|
Loading…
Reference in a new issue