Skip to content

puppetize/puppet-postfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

puppet-postfix

Module to install/configure/manage postfix.

Hiera

The params paradigm is used. So look into postfix::params to see what you can override through hiera (Puppet >= 3).

Usage

simple install

This will install postfix and won't touch any configuration shipped with the package provider:

include postfix

override/set some parameters

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,
  },
}

manage main.cf completely

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!

Set some options dynamically through postfix::conf or postfix_conf

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,
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published