summaryrefslogtreecommitdiff
path: root/sitemodules/profiles
diff options
context:
space:
mode:
authorJan Dittberner <jan@dittberner.info>2017-04-13 14:33:09 +0200
committerJan Dittberner <jan@dittberner.info>2017-04-13 14:33:09 +0200
commitf0c8ee5cfe42c4747ace4e45ded4483dff231b6c (patch)
treefda5807bc14e7d089c0a3a4ce607eeb493d579a2 /sitemodules/profiles
parentfafe4249785f0f727eca73f7ae270f601cba75c1 (diff)
downloadcacert-puppet-f0c8ee5cfe42c4747ace4e45ded4483dff231b6c.tar.gz
cacert-puppet-f0c8ee5cfe42c4747ace4e45ded4483dff231b6c.tar.xz
cacert-puppet-f0c8ee5cfe42c4747ace4e45ded4483dff231b6c.zip
Fix key name construction
Diffstat (limited to 'sitemodules/profiles')
-rw-r--r--sitemodules/profiles/manifests/base.pp4
1 files changed, 3 insertions, 1 deletions
diff --git a/sitemodules/profiles/manifests/base.pp b/sitemodules/profiles/manifests/base.pp
index d1d709b..f892bce 100644
--- a/sitemodules/profiles/manifests/base.pp
+++ b/sitemodules/profiles/manifests/base.pp
@@ -49,7 +49,9 @@ class profiles::base (
uid => $user['uid'],
}
$user['ssh_keys'].each |Hash[String, Data] $keydata| {
- ssh_authorized_key { "$user['username']@$keydata['name']":
+ $osusername = $user['username']
+ $keyname = $keydata['name']
+ ssh_authorized_key { "${osusername}@${keyname}":
ensure => present,
user => $user['username'],
type => $keydata['type'],