Re: [Puppet Users] Re: is_virtual selector

2012-10-07 Thread Matt
Hello Stefan, Yes, I am using Puppet 3.0.0 and RHEL 6.3. According to the Puppetlabs site, 'purged' should be supported with 'yum' in the latest version of Puppet: http://docs.puppetlabs.com/references/latest/type.html#package As 3.0 is a major release, and two versions (and two years) newer...

Re: [Puppet Users] Re: is_virtual selector

2012-10-06 Thread Stefan Schulte
On Fri, Oct 05, 2012 at 06:42:25PM -0700, Matt wrote: > Thanks Krzysztof. It successfully runs now, but output is misleading on > subsequent runs: > > build ~]# puppet agent -tv > Info: Retrieving plugin > Info: Caching catalog for build > Info: Applying configuration version '1349482471' > /Sta

[Puppet Users] Re: is_virtual selector

2012-10-06 Thread Krzysztof Wilczynski
Hi, No idea, to be honest. Works for me in 2.7 family without problems. The code I gave you was originally yours, I just added call to the function :) KW On Saturday, October 6, 2012 2:42:25 AM UTC+1, Matt wrote: > > Thanks Krzysztof. It successfully runs now, but output is misleading on > su

[Puppet Users] Re: is_virtual selector

2012-10-05 Thread Matt
Thanks Krzysztof. It successfully runs now, but output is misleading on subsequent runs: build ~]# puppet agent -tv Info: Retrieving plugin Info: Caching catalog for build Info: Applying configuration version '1349482471' /Stage[main]/Baseline-testing::Ntpd/Package[ntp]/ensure: ensure changed '

[Puppet Users] Re: is_virtual selector

2012-10-05 Thread Krzysztof Wilczynski
Hey, This selector expects to get a true boolean value e.g. true / false (TrueClass / FalseClass in Ruby) and that is why it is failing, since you are passing a string "true" from the fact (and all values coming from Facter are strings, even numeric values). Grab this: https://raw.github.com/