Felix, I just found the problem. It was in the 'define' I had created. Initially I just used a single string instead of an array and in the define I had this
options => "${options}", I just changed it into this options => $options, and now the various array elements are handled correctly. The loop is gone and the authorized_keys file is perfect Thanks for the eye-opener This is my 'new' define for authorizedkey define authorizedkey ( $ensure = "present", $tag = "", $type = "ssh-dss", $key = "", $options = "", $user ) { # # Load subclasses include authorizedkey::params include authorizedkey::virtual # # ssh_authorized_key ssh_authorized_key { "${name}": ensure => "${ensure}", type => "${type}", key => "${key}", user => "${user}", } # End ssh_authorized_key # # Additional settings if $options != "" { Ssh_authorized_key["${name}"] { options => $options, } # End options } # End if } # End define setup On May 13, 2:15 pm, Felix Frank <felix.fr...@alumni.tu-berlin.de> wrote: > On 05/13/2011 01:49 PM, rvlinden wrote: > > > If I remove the comma's from the no-port and no-agent, like this > > > options => [ > > "from=\"server1.mydomain,server1,192.168.1.2\"", > > "no-port-forwarding", > > "no-agent-forwarding", > > ]; > > > I get one big blob in my authorized_keys file > > Can you post your manifest (i.e. the resource in question) verbatim? > > I just pasted this into a test manifest and it works perfectly fine with > 2.6.8: > > ssh_authorized_key { > "foobar": > user => "ffrank", > key => "abcdef", > options => [ > > "from=\"server1.mydomain,server1,192.168.1.2\"", > "no-port-forwarding", > "no-agent-forwarding", > ], > type => "ssh-dss", > > } > > The entry is in my authorized_keys and puppet recognizes it. The commas > are present. > > Regards, > Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.