For reasons I wont go into, it looks like I need to start using stages. I 
have a few classes which i need to apply before doing anything in the 
'main' stage.

My problem is that I'm assigning classes using an enc (foreman) so 
assigning the stage to an assigned class is not as straightforward as it 
would normally be in a pure-puppet environent. What I've done is declare 
the $stage variable as part of the class definition, for example:

class myclass (
$myparam = 'myalue',
$stage = 'setup'
){
include stdlib
....
}

This works... around 50% of the time, quite frequently I get compilation 
errors like..

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Puppet::Parser::Compiler failed with error ArgumentError: Could not find 
stage setup specified by Class[myclass] on node mynode

Is this method of assigning a stage to a class supported? If not how else 
can I assign a stage to a class which is being assigned by the enc?

Thanks
Jeff

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/11c9a387-9f5a-44a8-b3c1-0f79a8e3282a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to