From d87a489f9585d10f0a185beb59ae16a10f27a7bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 16 Mar 2018 20:40:27 +0100 Subject: Add backup role --- modules/profile/manifests/known_hosts.pp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 modules/profile/manifests/known_hosts.pp (limited to 'modules/profile/manifests') 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 @@ +class profile::known_hosts ( + Optional[Array] $hosts = [] +) { + $hosts.each |$host| { + sshkey { $host["name"]: + ensure => "present", + key => $host["key"], + type => $host["type"], + } + } +} -- cgit v1.2.3