aboutsummaryrefslogtreecommitdiff
path: root/modules/profile/manifests
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
committerIsmaël Bouya <ismael.bouya@normalesup.org>2018-03-19 16:21:53 +0100
commit98311fc2ea91cc2a5f00e9fa85a30f50fde77e79 (patch)
tree58ff0ffad8cbe0230eff1791360bc7cc45501c34 /modules/profile/manifests
parentf4c9ed4c0a32082d8f7b60cee1eb33cb05c85a1c (diff)
parentd87a489f9585d10f0a185beb59ae16a10f27a7bd (diff)
downloadPuppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.gz
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.tar.zst
Puppet-98311fc2ea91cc2a5f00e9fa85a30f50fde77e79.zip
Merge branch 'backup' into dev
Diffstat (limited to 'modules/profile/manifests')
-rw-r--r--modules/profile/manifests/known_hosts.pp11
-rw-r--r--modules/profile/manifests/mail.pp14
2 files changed, 25 insertions, 0 deletions
diff --git a/modules/profile/manifests/known_hosts.pp b/modules/profile/manifests/known_hosts.pp
new file mode 100644
index 0000000..ed9ec8e
--- /dev/null
+++ b/modules/profile/manifests/known_hosts.pp
@@ -0,0 +1,11 @@
1class profile::known_hosts (
2 Optional[Array] $hosts = []
3) {
4 $hosts.each |$host| {
5 sshkey { $host["name"]:
6 ensure => "present",
7 key => $host["key"],
8 type => $host["type"],
9 }
10 }
11}
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