I am running puppet 3.1.1 and have a site.pp which roughly looks like this

site.pp:
node basenode {
  include common
}

node 'server1' inherits basenode {
  include role::appserver
}
node 'server2' inherits basenode {
  include role::webserver
}

And my common module includes lots of different types of classes for 
creating base directories, adding in users/groups, setting up LDAP, 
mcollective, etc..  So my issue is how to make sure that the common module 
runs before the roles listed in my node definitions.  I know that I could 
write out

node 'server1' inherits basenode {
  class{'common': } ->
  class{'role::appserver': }
}
node 'server2' inherits basenode {
  class{'common': } ->
  class{'role::webserver': }
}

but I am trying to think of a better way to do this.  Thoughts?

Thanks,
Chris

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to