chiku chiku
2009-Sep-04 14:37 UTC
[Puppet Users] ssh_authorized_key always ensure absent even it''s present
puppet version 0.24.8 from debian lenny-backports My class works and resource created the authorized_keys file. But puppet detect as ensure absent and added again and again my authorized_keys got fews the same key lines. I added the target => ''/home/test/.ssh/authorized_keys'', again ensure is absent. I replace the ssh_authorized_key.rb from 0.25rc1 and again ensure is absent. class ssh::my_ssh_key { ssh_authorized_key { ''test'': user => ''test'', type => ''ssh-rsa'', key => ''AAAAB3.....= test Vms'', ensure => ''present'', } } --~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---
ChiKu
2009-Sep-04 18:15 UTC
[Puppet Users] Re: ssh_authorized_key always ensure absent even it''s present
ok, the problem it''s key comment. I need to remove the key comment (the part after the =) 2009/9/4 chiku chiku <ml.chikulinu@gmail.com>:> > puppet version 0.24.8 from debian lenny-backports > > My class works and resource created the authorized_keys file. > But puppet detect as ensure absent and added again and again > my authorized_keys got fews the same key lines. > I added the target => ''/home/test/.ssh/authorized_keys'', > again ensure is absent. > > I replace the ssh_authorized_key.rb from 0.25rc1 > and again ensure is absent. > > > class ssh::my_ssh_key { > ssh_authorized_key { ''test'': > user => ''test'', > type => ''ssh-rsa'', > key => ''AAAAB3.....= test Vms'', > ensure => ''present'', > } > } > > > >--~--~---------~--~----~------------~-------~--~----~ 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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---