Hi all, even though I've read some postings about run stages, I'm still having trouble using them correctly.
First of all: Is it possible to add a stage directly when defining a class? That question has already been asked here (in section 2): http://groups.google.com/group/puppet-users/browse_thread/thread/a4c9ee83039ddff3/3cfe92dd495f069a If that wasn't possible, I've gathered from other threads, that I would have to add stages to my node definitions, like so: node ab_basenode { include "baseconfig" include "ab_baseconfig" class { "afs": stage => first } } However, this does not work, as it produces: Duplicate definition: Class[afs] is already defined; cannot redefine. This makes sense, as class "afs" is indeed defined in module "baseconfig". Does that mean, that I can only use the above stage resource declaration syntax when defining the class "afs" directly inside "ab_basenode" (instead of including it)? A few more words explaining the manifest/module structure: I have the modules "baseconfig" (default configuration for all nodes of our institute) and "ab_baseconfig" (default configuration for department "AB"). Both modules have many classes, one of which configures the AFS file system client (class "afs"). The two modules above are included into node "ab_basenode", which is a default node for department "AB". The actual physical nodes of department "AB" are then defined by inheritance "node taranaki.domainname.de inherits ab_basenode" and contain node-specific configuration (e.g. webserver config). I hope, someone understands, what I am trying to do and might shed some light onto the stage problem. As I'm new to puppet, I would also appreciate criticism about the manifest/module structure - maybe I'm doing things too complicated? Best regards, Jan -- 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.