Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-20 Thread jcbollinger
On Thursday, September 19, 2013 4:59:51 PM UTC-5, Ryan Coleman wrote: On Mon, Sep 16, 2013 at 10:49 PM, Mani Devarajan manide...@gmail.comjavascript: wrote: How do i overcome this issue to complete the workflow of module B in both cases (where A is enabled or disabled) Mani,

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-19 Thread Ryan Coleman
On Mon, Sep 16, 2013 at 10:49 PM, Mani Devarajan manidevara...@gmail.comwrote: How do i overcome this issue to complete the workflow of module B in both cases (where A is enabled or disabled) Mani, virtual resources will get the job done but may be heavy-handed for your use case. If you want

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-17 Thread Martin Alfke
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

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-17 Thread Rahul Khengare
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

Re: [Puppet Users] Need help with defining same package resource in two modules

2013-09-17 Thread jcbollinger
On Tuesday, September 17, 2013 1:59:02 AM UTC-5, Martin Alfke wrote: On Sep 17, 2013, at 8:18 AM, Rahul Khengare rahul...@gmail.comjavascript: wrote: Hi Mani, Case2: A=true, when B runs it fails Error 400 on SERVER: Duplicate definition: Package[pkg1] is already defined in

[Puppet Users] Need help with defining same package resource in two modules

2013-09-16 Thread Mani Devarajan
Hello all, I have two puppet modules A B. A module is enabled or disabled with flag set to true or false respectively. I need a package pkg1 to do complete the workflow of B. Module A: package { pkg1: ensure = installed } Module B: package { pkg1: ensure = installed } Case1: