diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-16 20:40:27 +0100 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2018-03-19 16:19:17 +0100 |
commit | d87a489f9585d10f0a185beb59ae16a10f27a7bd (patch) | |
tree | 58ff0ffad8cbe0230eff1791360bc7cc45501c34 /modules/profile | |
parent | cfa8eb925ff0115d5d4b2298f7d9a054b869fa75 (diff) | |
download | Puppet-d87a489f9585d10f0a185beb59ae16a10f27a7bd.tar.gz Puppet-d87a489f9585d10f0a185beb59ae16a10f27a7bd.tar.zst Puppet-d87a489f9585d10f0a185beb59ae16a10f27a7bd.zip |
Add backup role
Diffstat (limited to 'modules/profile')
-rw-r--r-- | modules/profile/manifests/known_hosts.pp | 11 |
1 files changed, 11 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 @@ | |||
1 | class 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 | } | ||