On Thursday, July 12, 2012 4:59:51 PM UTC-5, llo...@oreillyauto.com wrote: > > > Our node defs are mostly classes and variables, but they also do some > ordering using chaining syntax, because, for an web app server, for > example, you need to make sure that Java is installed before Tomcat. >
I'd generally recommend that you express dependencies directly in your resources or classes, rather than using the chain operators at a higher level. As much as possible, classes and especially modules should be self-contained. A need to express dependencies outside a module (e.g. in a node definition) constitutes a failure of encapsulation, and it makes your classes and modules harder to use. > > We don't currently make use of Stages, and while I see their benefit, I > don't know that we need them with how we are using puppet currently. > I don't much care for stages, actually, and I don't see much benefit to them myself, at least as they are currently implemented. There is nothing you can do with them that you cannot do with conventional resource relationships. At best they are syntactic sugar, but in practice they are prone to problems, such as creating dependency cycles and forcing parameterized class declaration syntax even on unparametrized classes. I'd recommend that you avoid them. > > I'm not sure that we need an ENC either, as using the node defs is working > well for us, and we typically only have one person working on a given > module or node at any given time, but I want to maximize the benefit we get > from puppet while making it easy to maintain and, as needed, reuse bits and > pieces. > It's very unlikely that you need an ENC for an installation your size. You might nevertheless find Dashboard's or Foreman's ENC features convenient, especially as your site grows. I'm not using either at the moment myself, but I keep flirting with the idea of installing one or the other. John -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/_taXaw6yQzYJ. 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.