I'm going through our puppet configuration trying to get ready for an eventual upgrade to puppet 4.
One thing I'm curious about, though, is the use of str2bool.
* Interpolate the fact into a string ("$is_virtual")…
* …then pass the string to the stdlib str2bool function (str2bool("$is_virtual")).
However, I'm not sure why interpolating into a string is necessary? If you pass a bool into str2bool, you get that bool right back out, and my tests (with puppet 3.8 and with and without --parser=future) show that interpolating into a string first isn't necessary.
Is there a subtlety I'm missing?
Thanks