As there is no response, maybe some extra info: For classes I use 'inherits' to apply multiple classes to one resource. For defines I can't find a similar technique. Is there one?
On Thursday, November 1, 2012 3:30:52 PM UTC+1, Erwin Bogaard wrote: > > In retrospect: a better subject would have been 'Apply multiple defines to > one resource'. > But as far as I can see, there is no way to change a subject > > 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/-/A_wiKntL4c0J. 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.