[EMAIL PROTECTED] /tmp$ irb -ryaml irb(main):001:0> classes = [ "baseserver", "stg2server" ] => ["baseserver", "stg2server"] irb(main):002:0> puts classes.to_yaml --- - baseserver - stg2server => nil
AFAIK, Puppet uses YAML.load / YAML.dump for object manipulation. "claseses: [baseserver, stg2server]" is not a valid yaml array representation? 2008/9/29 Daniel Pittman <[EMAIL PROTECTED]> > > "Andrew Shafer" <[EMAIL PROTECTED]> writes: > > On Tue, Sep 23, 2008 at 12:01 PM, heise <[EMAIL PROTECTED]> wrote: > > > > I'm trying to get puppet to function with external nodes, i've got a > > script that spits out yaml in the following for my test case > "classes: > > [baseserver, stg2server] " , from this i get the error of "couldn not > > retrieve catalog: could not find default node or by name with 'heise- > > laptop' on node heise-laptop" is there something i'm missing in my > > yaml , is there something more my external node classifer needs to > > return other than the yaml and an exit code of 0 ? > > > > > The yaml output is not formated properly for puppet. It should look more > like this: > > classes: > > - baseserver > > - stg2server > > > > http://reductivelabs.com/trac/puppet/wiki/ExternalNodes > > Does puppet have a hand-rolled YAML parser incompatible with the > specification? Those two reflect *exactly* the same content: the key > 'classes' associated with an array of two values. > > There should be absolutely *zero* different between the in-memory > representations of those two YAML declarations. > > Regards, > Daniel > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en -~----------~----~----~----~------~----~------~--~---