On Thursday, October 25, 2012 4:38:31 AM UTC-5, Abhijeet Rastogi wrote: > > In ucarp, multiple instances can be run and I have to run two instances > of ucarp. So, what ever I do, either create a custom resource ot > parameterised classes, they will have to be declared twice. >
You're still confusing me. Your initial message led me to believe that your two ucarp instances are supposed to run on different hosts. Did I misunderstand? If the ucarp instances are on different hosts, then it seems to me that each of those hosts' catalogs should declare only the ucarp instance for that host. You should not need multiple ucarp declarations for that setup. Even if you wrote two separate declarations in your manifest, you would want to use a conditional statement to ensure that no more than one was actually applied to any host. Under those circumstances, Puppet would not complain about duplicate resources. > > The code can be seen here https://github.com/shadyabhi/puppet-ucarp > > I have developed two versions, one with classes and the other with > resources. And both suffer the same issue. > If you really do intend to declare two different ucarp instances on the *same node*, then giving the resources different titles -- such as "ucarp-test1" and "ucarp-test2" -- should get you around the duplicate resource issue. (Note: defined-type instances are resources, but classes are not.) 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/-/0ZiMgeg52wgJ. 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.