Issue #2673 has been updated by Stefan Schulte.

Status changed from Accepted to Closed

I verified that the following manifest does work with puppet 2.7.3.
<pre>
ssh_authorized_key {"[email protected]":
  ensure  => present,
  type    => dsa,
  target  => "/root/.ssh/authorized_keys",
  options => 
    'command="rdiff-backup --server --restrict-read-only /"',
    'no-port-forwarding',
    'no-X11-forwarding',
    'no-pty',
  ],
  key     => "AAAAB...3I=",
  user    => "root",
}
</pre>
Puppet >=2.7.3 will raise an error if you specify `options` as a comma 
separated list (as of commit:1c7f0c35)
<pre>
Parameter options failed: Options must be provided as an array, not a comma 
separated list
</pre>

Closing the ticket now (I can't set target version to 2.7.3 though...).
----------------------------------------
Bug #2673: ssh_authorized_keys options is detected as changed when it is not
https://projects.puppetlabs.com/issues/2673#change-61207

Author: Klavs Klavsen
Status: Closed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 0.24.8
Keywords: 
Branch: 


If I have this ssh key config:
<pre>
        ssh_authorized_key {"[email protected]":
                ensure => present,
                type   => dsa,
                target => "/root/.ssh/authorized_keys",
                options => ["rdiff-backup --server --restrict-read-only 
/","no-port-forwarding","no-X11-forwarding","no-pty"],
                #options => 'command="rdiff-backup --server 
--restrict-read-only /",no-port-forwarding,no-X11-forwarding,no-pty',
                key => "AAAAB...3I=",
                user   => "root",
        }
</pre>

puppet keeps saying:
<pre>
notice: 
//Node[dbserver]/basenode/backup/Ssh_authorized_key[[email protected]]/options:
 options changed 'rdiff-backup,--server,--restrict-read-only' to 'rdiff-backup 
--server --restrict-read-only /,no-port-forwarding,no-X11-forwarding,no-pty'
</pre>
Even though the options haven't changed obviously :)

If you give it the options in a string - it doesn't work either (see bug 1820 - 
a feature request :)


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to