Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-14 Thread jcbollinger
On Friday, June 14, 2013 9:14:07 AM UTC-5, jcbollinger wrote: > > Nevertheless, if it is not feasible for you to determine up front all the > packages your apps may be using or may want to use, then you can get by > with a smaller list, consisting of just the union of those packages > currentl

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-14 Thread jcbollinger
On Friday, June 14, 2013 2:01:50 AM UTC-5, Tom Lanyon wrote: > > Hi John > > On 14/06/2013, at 12:06 AM, jcbollinger [...] wrote: > > This is where it fell apart for me before, I didn't realise that you > assumed $::app_packages was every possible package; in my first post I'd > specified th

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-14 Thread Tom Lanyon
Hi John On 14/06/2013, at 12:06 AM, jcbollinger wrote: >> >> On Wednesday, June 12, 2013 9:15:22 AM UTC-5, Tom Lanyon wrote: >> On 05/06/2013, at 11:51 PM, jcbollinger [...] wrote: >> > I don't much like that general approach in the first place on account of >> > the $requested_package paramet

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-13 Thread jcbollinger
On Wednesday, June 12, 2013 9:15:22 AM UTC-5, Tom Lanyon wrote: > > On 05/06/2013, at 11:51 PM, jcbollinger [...] wrote: > > I don't much like that general approach in the first place on account of > the $requested_package parameter. That you encounter difficulty when you > try something a bi

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-12 Thread Tom Lanyon
Hi John, Sorry for the delayed reply. On 05/06/2013, at 11:51 PM, jcbollinger wrote: > >> Sorry, I should have been clearer that this occurs when Package[package-434] >> IS declared elsewhere. "!defined(Package[package-434])" therefore is false, >> so just by referencing the existing declarat

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-05 Thread jcbollinger
On Tuesday, June 4, 2013 6:01:58 PM UTC-5, Tom Lanyon wrote: > > Hi John, > > Thanks for the reply. > > On 05/06/2013, at 12:33 AM, jcbollinger wrote: > > On Tuesday, June 4, 2013 1:22:08 AM UTC-5, Tom Lanyon wrote: > > > > Unfortunately, this results in a dependency cycle. It appears that

Re: [Puppet Users] defined() implicitly requiring resource reference

2013-06-04 Thread Tom Lanyon
Hi John, Thanks for the reply. On 05/06/2013, at 12:33 AM, jcbollinger wrote: > On Tuesday, June 4, 2013 1:22:08 AM UTC-5, Tom Lanyon wrote: > I'm testing a 'cleanup' stage which runs after Stage[main] and removes a > bunch of package resources. > > To do this, I tried a simple check of defin

[Puppet Users] defined() implicitly requiring resource reference

2013-06-03 Thread Tom Lanyon
I'm testing a 'cleanup' stage which runs after Stage[main] and removes a bunch of package resources. To do this, I tried a simple check of defined(Package[]) combined with a custom facter fact (called 'app_packages'): > class app::package::cleaner { > > define check_and_remove { > if !de