Module to install/configure/manage postfix.
The params paradigm is used. So look into postfix::params to see what you can override through hiera (Puppet >= 3).
This will install postfix and won't touch any configuration shipped with the package provider:
include postfix
This will install postfix and will change/set the parameters in the main.cf (better use hiera or postfix::conf instead of the parameterized class):
class { 'postfix':
options => {
'message_size_limit' => '10240000',
'allow_min_user' => true,
},
}
This will install postfix and overrides the main.cf with a template you provide (and the options variable is given through so that the stuff can be used inside the template):
class { 'postfix':
template => 'my_site/postfix/main.cf.erb',
options => {
'message_size_limit' => '10240000',
'allow_min_user' => true,
},
}
Keep in mind that postfix::conf is not working if the main.cf is completely managed by puppet!
If you want to manage the main.cf more dynamically to be able to extend the default configuration you could use the define postfix::conf or using the function postfix_conf:
postfix::conf {
'message_size_limit':
value => '10240000';
'allow_min_user':
value => true;
}
postfix_conf({
'message_size_limit' => '10240000',
'allow_min_user' => true,
})