[Puppet Users] Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread Bruno Bieth
I'd like to do something like this define mytype() {} define delete_mytype() {} mytype { 'a': } mytype { 'b': } mytype { 'c': } $existing_mytypes = # something from facter # but this doesn't work $wanted_mytypes = Mytype || Mytype|| - Delete_mytype|| delete_mytype { diff(

[Puppet Users] Re: Retrieve resource names of a given type without using the filesystem

2014-05-20 Thread Bruno Bieth
John, thanks for your detailed answer! So you are trying to remove unmanaged resources of the specified type? Puppet has built-in support for that for plugin resource types that meet a couple of fairly simple criteria. You would even dispense with any need for facter to be involved if you

Re: [Puppet Users] puppet class require fails depending on declaration order

2014-04-02 Thread Bruno Bieth
, and will sometimes work and sometimes cause compilation failures. regards, On Tue, Apr 1, 2014 at 2:15 PM, Bruno Bieth bie...@gmail.comjavascript: wrote: Hi, I've got the following code that works as expected: class { c1: } class { c2: } class c1 { notice +++ } class c2 { require c1

[Puppet Users] puppet class require fails depending on declaration order

2014-04-01 Thread Bruno Bieth
Hi, I've got the following code that works as expected: class { c1: } class { c2: } class c1 { notice +++ } class c2 { require c1 notice +++ } But switching the declaration order of class c1 and c2: class { c2: } class { c1: } class c1 { notice +++ } class c2 { require c1