thbe / puppet-ssmtp

Puppet ssmtp module
https://thbe.github.io/puppet-ssmtp/
GNU General Public License v3.0
1 stars 15 forks source link

Support more config params #6

Closed vinzent closed 9 years ago

vinzent commented 9 years ago

Add ssmpt.conf AuthUser, AuthPass, AuthMethod, TLSCert, TLSKey, TLS_CA_File and TLS_CA_Dir as class parameters.

Add a new param require_yum to have the ability to disable the "require yum" as needed.

The ssmtp.conf file should not be world-readable as it could contain credentils.

Tested on CentOS 6 with puppet 4 (puppet-agent AIO):

echo "class { ::ssmtp: require_yum => false, authuser => "authuser", authpass=>"authpass", authmethod=>"authemthod", tlscert=>"tlscert", tlskey=>"tlskey", tlscafile=>"tlscafile", tlscadir=>"tlscadir" }" | /opt/puppetlabs/bin/puppet apply