diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-17 11:00:48 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 16:19:17 +0100 |
commit | 82caf31189f11a9bca4836260e8ee8ba954690f2 (patch) | |
tree | 97b15bbbb0ca9415fb17acc11f3592bc40e942f6 /modules/profile/manifests | |
parent | 97103ded8390d10ea3468615c654e89d07c0a921 (diff) | |
download | Puppet-82caf31189f11a9bca4836260e8ee8ba954690f2.tar.gz Puppet-82caf31189f11a9bca4836260e8ee8ba954690f2.tar.zst Puppet-82caf31189f11a9bca4836260e8ee8ba954690f2.zip |
Add mail profile
Diffstat (limited to 'modules/profile/manifests')
-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 | |||