Hi all,
i have written a own resource type to manage Interfaces, ipaddresses and mor on Solaris systems.
I also enabled purging for the ipaddress resources to destroy no longer included ipaddresses in a catalogue for a system.
All works fine and without problems.
But in some rare situations, he wants to create a Ipinterface with a Ipaddress before he destroys an other, not in catalogue included ipaddress.
Is there a option to configure that he first always destroys resources that not included in the catalogue?
Example:
Ip configure on Interface: e1000g1/v4
Ip in catalogue on Interface: ipmp1/v4
During first Puppet run i got this error:
Error: /Stage[network]/Network::Solaris::Ip_address/Network::Solaris::Def_ipaddress[ipmp1/v4]/Ipaddress[ipmp1/v4]/ensure: change from absent to present failed: ip='1.2.3.4' already exists!
Notice: /Ipaddress[e1000g1/v4]/ensure: removed
Regards
Andreas