Defined Type: postfix::postconf
- Defined in:
- manifests/postconf.pp
Overview
Define postfix::postconf
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'manifests/postconf.pp', line 3
define postfix::postconf (
$value,
$key = '',
) {
$real_key = $key?{
'' => $name,
default => $key
}
$key_value = "${real_key} = ${value}"
exec{"postconf_${real_key}":
command => "postconf -e '${key_value}'",
unless => "test \"\$(postconf ${real_key})\" = '${key_value}'",
path => $::path
}
}
|