Fix key name construction
authorJan Dittberner <jan@dittberner.info>
Thu, 13 Apr 2017 12:33:09 +0000 (14:33 +0200)
committerJan Dittberner <jan@dittberner.info>
Thu, 13 Apr 2017 12:33:09 +0000 (14:33 +0200)
sitemodules/profiles/manifests/base.pp

index d1d709b..f892bce 100644 (file)
@@ -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'],