Displaying 1 result from an estimated 1 matches for "_destructor".
Did you mean:
destructor
2006 Nov 16
7
Negating or removing classes
...set it up as a template and conditionally include
each line based on whether the node was tagged but I don''t like that as
it puts my config information in two places. I like keeping the key with
the service.
What might be cool are class destructors where if a class with a suffix
eg "_destructor" exists then every node that does not include the main
class has the destructor run. Something like:
class a_file {
file { "/a_file": ensure => present }
}
class a_file_destructor {
file { "/a_file": ensure => absent }
}
node with_a_file { include a_file }
n...