aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-17 11:00:48 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:19:17 +0100
commit82caf31189f11a9bca4836260e8ee8ba954690f2 (patch)
tree97b15bbbb0ca9415fb17acc11f3592bc40e942f6 /modules/profile/manifests
parent97103ded8390d10ea3468615c654e89d07c0a921 (diff)
downloadPuppet-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.pp14
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 @@
1class 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