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(
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
, 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
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