-
Type:
Bug
-
Status: Closed
-
Priority:
Normal
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: sshkeys_core
-
Template:customfield_10700 51770
Specifying a blank string for the 'name' attribute should probably throw an error, because the documentation says that the name has to be unique to the system.
The manifest I used to test:
$username = 'testuser'
|
$keyname = 'has_a_blank_name'
|
|
user { $username:
|
ensure => present,
|
managehome => true,
|
}
|
->
|
ssh_authorized_key {$keyname:
|
ensure => present,
|
name => "",
|
user => $username,
|
type => 'ssh-rsa',
|
key => 'AAAAB3NzaC1yc2EAAAABIwAAAQEAy5mtOAMHwA2ZAIfW6Ap70r+I4EclYHEec5xIN59ROUjss23Skb1OtjzYpVPaPH8mSdSmsN0JHaBLiRcu7stl4O8D8zA4mz/vw32yyQ/Kqaxw8l0K76k6t2hKOGqLTY4aFbFISV6GDh7MYLn8KU7cGp96J+caO5R5TqtsStytsUhSyqH+iIDh4e4+BrwTc6V4Y0hgFxaZV5d18mLA4EPYKeG5+zyBCVu+jueYwFqM55E0tHbfiaIN9IzdLV+7NEEfdLkp6w2baLKPqWUBmuvPF1Mn3FwaFLjVsMT3GQeMue6b3FtUdTDeyAYoTxrsRo/WnDkS6Pa3YhrFwjtUqXfdaQ==',
|
}
|
|