Refer http://docs.puppetlabs.com/puppet/2.7/reference/lang_virtual.html this
for creating and realizing the virtual resource.

Thanks and Regards,
Rahul Khengare
NTT DATA OSS Center, Pune, India.

On Tue, Sep 17, 2013 at 12:29 PM, Martin Alfke <tux...@gmail.com> wrote:

>
> On Sep 17, 2013, at 8:18 AM, Rahul Khengare <rahulk1...@gmail.com> wrote:
>
> > Hi Mani,
> >
> > Case2: A=true, when B runs it fails
> > Error 400 on SERVER:
> > Duplicate definition: Package[pkg1] is already defined in
> > file A at line ; cannot redefine at
> >
> > How do i overcome this issue to complete the workflow of module B in
> both cases (where A is enabled or disabled)
> >
> > If module A get enable then re-declaration of package[pkg1] resource is
> happening. Here you can disable the module B.
> >
>
> Make your package resource virtual and realise the resource in both
> modules.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/mOHDwWzINdc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> puppet-users+unsubscr...@googlegroups.com.
> To post to this group, send email to puppet-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/puppet-users.
> For more options, visit https://groups.google.com/groups/opt_out.
>

-- 
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 post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to