diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 16:21:53 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 16:21:53 +0100 |
commit | 98311fc2ea91cc2a5f00e9fa85a30f50fde77e79 (patch) | |
tree | 58ff0ffad8cbe0230eff1791360bc7cc45501c34 /modules/profile/manifests/mail.pp | |
parent | f4c9ed4c0a32082d8f7b60cee1eb33cb05c85a1c (diff) | |
parent | d87a489f9585d10f0a185beb59ae16a10f27a7bd (diff) | |
download | Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.gz Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.zst Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.zip |
Merge branch 'backup' into dev
Diffstat (limited to 'modules/profile/manifests/mail.pp')
-rw-r--r-- | modules/profile/manifests/mail.pp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/profile/manifests/mail.pp b/modules/profile/manifests/mail.pp new file mode 100644 index 0000000..cc47b77 --- /dev/null +++ b/modules/profile/manifests/mail.pp | |||
@@ -0,0 +1,14 @@ | |||
1 | class profile::mail ( | ||
2 | String $mailhub, | ||
3 | Optional[Integer] $mailhub_port = 25, | ||
4 | ) { | ||
5 | ensure_packages(["s-nail", "ssmtp"]) | ||
6 | |||
7 | $hostname = lookup("base_installation::real_hostname") | ||
8 | |||
9 | file { "/etc/ssmtp/ssmtp.conf": | ||
10 | ensure => "present", | ||
11 | content => template("profile/mail/ssmtp.conf.erb"), | ||
12 | } | ||
13 | } | ||
14 | |||