I'm also seeing this. I'm not sure what --graph is an option to, not my puppet.
First, some version info. This is an ubuntu hardy machine with a current puppet: r...@mta-system:~# dpkg -s puppet | grep Vers Version: 0.24.8-1 r...@mta-system:~# dpkg -s facter | grep Vers Version: 1.5.1-0.1 I have a pretty simple test. 1 user, 1 key, in a file. I have 8 variants to test: real or virtual; requires, before, no explicit depends, and both. I expect all 8 variants to work, but none of them do. Here's the one I like best (least amount of extraneous typing): r...@mta-system:/tmp/ordering# cat ordering-virtual.pp @user { "seph": ensure => "present", uid => "2001", comment => "seph", home => "/home/seph", shell => "/bin/bash", allowdupe => false, managehome => true, password => '!!', } @ssh_authorized_key { "seph-2008": ensure => present, key => "foo==", type => "ssh-dss", name => "s...@macbook-2008", user => seph, } realize( User["seph"], Ssh_authorized_key["seph-2008"], ) r...@mta-system:/tmp/ordering# puppet --verbose ordering-virtual.pp info: Loading fact virtual sh: Syntax error: Bad fd number sh: Syntax error: Bad fd number err: Could not create seph-2008: user seph doesn't exist user seph doesn't exist That same file does create the user, if there's no ssh key, likewise if the user already exists it will add the key. And since I did actually try all 8 variants, here's there's logs: real, no depends: http://pastie.org/454576 real, require: http://pastie.org/454579 real, before: http://pastie.org/454581 real, both: http://pastie.org/454597 virtual, no depends: http://pastie.org/454582 virtual, require: http://pastie.org/454585 virtual, before: http://pastie.org/454587 virtual, both: http://pastie.org/454600 seph Andrew Shafer <and...@reductivelabs.com> writes: > Scott, > > Can you pastie the simplest code to reproduce and maybe attach the files > created by --graph to see what the relationships look like. > > Is anyone else seeing a problem like this? > > > > > On Tue, Apr 21, 2009 at 9:02 PM, Scott <scott...@gmail.com> wrote: > >> >> Hi, so I'm running into a problem since upgrading to 0.24.8 where >> puppet is trying to create an authorized key for users that don't >> exist because it doesn't do the require ( require => "/etc/passwd" ) >> first. >> >> I've tried making the require a default parameter for >> "ssh_autohrized_key" (yes, in the same scope), I've tried making the >> passwd file a requirement for every "ssh_authorized_key" and I've >> tried to use "before" with the passwd resource ( before => Class >> [ users::ssh_keys ] ) and yet puppet insists on trying to create the >> key before doing any of the prerequisites. >> >> One other note, the ssh_authorized_key isn't always for the same >> person, so it's not a particular key that's causing the problem. >> Also, this was never a problem with 0.24.7. >> >> Cheers, >> Scott >> > >> > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---