Haris, On Jul 6, 7:19 am, "M.F.Haris" <mfha...@gmail.com> wrote: > $sourcepath = $operatingsystem ? { > AIX => "/etc/puppet/modules/userkeys/files/$pub_key.$username", > default => "puppet:///SLES/$pub_key.${username}", > }
Here, on the AIX path you tell it to copy the id_dsa.pub /from a local file on the client/. You need to probably change that to 'puppet:/// modules/userkeys/$pub_key.$username' or 'puppet:///SLES/$pub_key.$ {username}' or similar and it should copy from the server. There's a built in ssh_authorized_key type that would probably save you a bunch of work. http://docs.puppetlabs.com/references/stable/type.html#ssh_authorized_key -Andrew > ... > ... > > file { "${home}/${username}/$sshDir/authorized_keys": > ensure => "present", > owner => $username, > group => $group, > mode => 600, > require => File["${home}/${username}/${sshDir}"], > #source => "puppet:///userkeys/files/${pub_key}.${username}", > source => $sourcepath, > } > > when i run this script on Linux nodes, it executes successfully and all > users created with the their keys but on AIX the users are created but keys > are not deployed there and i am getting this errr: > *File[/home/xyz/.ssh/authorized_keys]/ensure: > No specified sources exist* > > PS: Though I found a hack to copy the keys from server and deploy them on > client nodes but i am still wondering why my AIX client is not able to > retreive the sourcepath from server when my SLES clients are able to > retrieve it. > > one more thing i am not creating any ssh key but actually copying it from > hosted server to the clients. > > what am i doing wrong here? waiting for your response > > -- > haris -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-us...@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.