John and Tim, thanks for your replies and patience. In the end, the solution of Tim seems to work great! That was what I was looking for: a relatively straight solution to a relatively straight problem (at least, that was what I thought to improve the previous situation). As a novice to intermediate Puppet user, I've again learned a lot about writing some nice manifests and getting things done the way I want to.
On Thursday, November 1, 2012 3:27:10 PM UTC+1, Erwin Bogaard wrote: > > I'm having trouble getting the following scenario to work: > - I have two defines, for example 'sugar' and 'wordpress'. > - Some nodes need to have both applied, others only sugar. > - Because you can't use the same resource twice (not that I want to), I > can't figure out how to apply two separate defines to one resource > > At the moment I use the following workaround: I have two defines, one > with only sugar and one with both sugar and wordpress. As I have to change > both files if I change something for Sugar, this really isn't optimal. > Anyone a suggestion? > > -- 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/-/rrpE72obmHwJ. 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.