The following code: |
notify { 'BOOLEAN FACT TRUE': |
message => true, |
} |
|
notify { 'BOOLEAN FACT FALSE': |
message => false, |
}
|
gives the following output when running puppet apply:
Notice: Compiled catalog for controlmagent.local in environment production in 0.02 seconds |
Notice: true |
Notice: /Stage[main]/Main/Notify[BOOLEAN FACT TRUE]/message: defined 'message' as true |
Notice: Applied catalog in 0.01 seconds
|
The expectation is that the BOOLEAN FACT FALSE resource should also show up. Instead it appears that notify resource treats false as a special case to not include the resource or to not show it. This is potentially fine but then this behaviour needs to be better documented. The current documentation does not capture this behaviour. https://puppet.com/docs/puppet/5.5/types/notify.html This is also true for 6.0 but I have not tested the behaviour in 6.0 yet. Tested on 5.5.6 |