Closed n1md4 closed 3 years ago
The fact
function comes from the puppetlabs/stdlib
module: https://forge.puppet.com/puppetlabs/stdlib/reference#fact
Do you have puppetlabs/stdlib
installed?
Hi, kenyon. It was a problem with stdlib, an older crusty version was installed locally that got in the way of pulling the new one in.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
from the example code:
What are you seeing
Error: Unknown function: 'fact'.
What behaviour did you expect instead
Puppet run to complete and create virtualenv appropriately.
Output log
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Unknown function: 'fact'. ( .... python/manifests/install.pp, line: 269, column: 14) on node xxxx
Log to entirely verbatim.
Any additional information you'd like to impart
This is the line of code it fails on:
if fact('lsbdistcodename') == 'trusty' {