If both nodes has to export the same resource ( same type/same title) they
cannot be collected together.

So, if you need to collect both, change the title to make it unique.

Regards,
El 29/08/2014 15:38, "Julien Pivotto" <roidelapl...@gmail.com> escribió:

>
> Hello
>
> I am facing a small problem concerning the puppetization of
> an highly available application.
>
>
> Some code worst 1000 words:
>
> myapp/common.pp:
>
> @@apache::balancer { "myapp": }
>
> apache.pp:
>
> Apache::Balancer <<||>>
>
>
> So long so good, until a second node also includes myapp/common.pp (the
> two nodes run the same puppet code). Then puppet complains about
> duplicate resource definition.
>
> How would one solve that? I have been thinking about several options:
>
> - Putting a "reference" boolean, which, if checked, would export the
>   resource to the PM. If unchecked then the resources would not be
> included.
>
> - Putting a "reference node" in the apache class to only gather
>   balancers from certain nodes:
>   Apache::Balancer <<|tags=="myreferencenode"|>>
>
> Any other ideas?
>
>
> --
>  (o-    Julien Pivotto
>  //\    Open-Source Consultant
>  V_/_   Inuits - https://www.inuits.eu
>

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CAF_B3ddhxXPwX3tu-W2u_nWGHMBoPEKejxHbzT%2BYxGRX4%2BZzsA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to