Hello folks, 

Im trying to migrate from static nodes-definition to external nodes 
definition. 

My script looks like this stolen from 
http://reductivelabs.com/trac/puppet/wiki/ExternalNodes:

{{{

#!/usr/bin/perl -w
use warnings;
use YAML qw( Dump );
use Switch;

#initialize vars
our @classes;
our %parameters;

Function to fill @classes and %parameters with correct values
....

print Dump( {
  classes     => [EMAIL PROTECTED],
  parameters  => \%parameters,
} );

}}}

I added a "debug" function to write the YAML-Dump() output to textfile 
to verify that this script is running and produces correct output. 

Unfortunalety the nodes can't get the config anymore:

err: Could not retrieve catalog: Could not find default node or by name 
with 'host02-test.rev.domainname, host02-test.rev.domainname, 
host02-test.rev, host02-test' on node host02-test.rev.domainname

But in the debug-textfile I can see yaml-markuped entries 

---
Classes:
 - basesystem
Parameters: 
 revision: rev


Master and Client runs 0.24.5

Does anyone have a hint why it doesn't work? 

Thank you

Kurt 


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to