How to unset a fact in an inherited class?
I have a class that sets a few facts:
class my_service {
fact {
'sysadmin0': value => 'alice';
'sysadmin1': value => 'bob';
'sysadmin2': value => 'charles';
}
...
}
I would like to have an inherited class that only sets the first of those facts:
class my_service::test inherits my_service {
# Be sure that sysadmin1 and sysadmin2 are NOT defined:
Fact['sysadmin0'] {value => 'diane' }
Fact['sysadmin1'] {value => undef }
Fact['sysadmin2'] {value => undef }
...
}
However, this generates the error Error 400 on SERVER: No value provided for sysadmin1 fact
. How can I get those other two facts undefined on the inherited class?