diff options
author | Michael Scherer <misc@mageia.org> | 2010-11-24 20:31:07 +0000 |
---|---|---|
committer | Michael Scherer <misc@mageia.org> | 2010-11-24 20:31:07 +0000 |
commit | 344e0959cbb9da9334080ac0ab07d08fe4716349 (patch) | |
tree | 1b58150894d66b3b5e7a9b7e23415fd2998b4a72 /modules/ssmtp | |
parent | 2e9ac2e0a3b5bf7055548f5b49fe28536eb9683b (diff) | |
download | puppet-344e0959cbb9da9334080ac0ab07d08fe4716349.tar puppet-344e0959cbb9da9334080ac0ab07d08fe4716349.tar.gz puppet-344e0959cbb9da9334080ac0ab07d08fe4716349.tar.bz2 puppet-344e0959cbb9da9334080ac0ab07d08fe4716349.tar.xz puppet-344e0959cbb9da9334080ac0ab07d08fe4716349.zip |
add a ssmtp module, to replace postfix as it would be too complex to manage for both simple relay and full fledged server
Diffstat (limited to 'modules/ssmtp')
-rw-r--r-- | modules/ssmtp/manifests/init.pp | 13 | ||||
-rw-r--r-- | modules/ssmtp/templates/ssmtp.conf | 9 |
2 files changed, 22 insertions, 0 deletions
diff --git a/modules/ssmtp/manifests/init.pp b/modules/ssmtp/manifests/init.pp new file mode 100644 index 00000000..922a451e --- /dev/null +++ b/modules/ssmtp/manifests/init.pp @@ -0,0 +1,13 @@ +class ssmtp { + package { ssmtp: + ensure => installed, + } + + file { "ssmtp.conf": + path => "/etc/ssmtp/ssmtp.conf", + owner => root, + group => root, + mode => 644, + content => template("ssmtp/ssmtp.conf") + } +} diff --git a/modules/ssmtp/templates/ssmtp.conf b/modules/ssmtp/templates/ssmtp.conf new file mode 100644 index 00000000..b535bc29 --- /dev/null +++ b/modules/ssmtp/templates/ssmtp.conf @@ -0,0 +1,9 @@ +root=mageia-sysadm@<%= domain %> + +mailhub=mx.<%= domain %> + +rewriteDomain= + +# The full hostname +hostname=<%= fqdn %> + |