summaryrefslogtreecommitdiff
path: root/sitemodules
diff options
context:
space:
mode:
Diffstat (limited to 'sitemodules')
-rw-r--r--sitemodules/profiles/manifests/base.pp9
1 files changed, 9 insertions, 0 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index 961cbb8..d1d709b 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -48,6 +48,15 @@ class profiles::base (
password => $user['password'],
uid => $user['uid'],
}
+ $user['ssh_keys'].each |Hash[String, Data] $keydata| {
+ ssh_authorized_key { "$user['username']@$keydata['name']":
+ ensure => present,
+ user => $user['username'],
+ type => $keydata['type'],
+ key => $keydata['key'],
+ require => User[$user['username']],
+ }
+ }
}
file { '/etc/init.d/puppet':