I am in the process of porting the existing puppet 0.25 to Puppet 3.8.7 running under Foreman. When I was writing a module to handle getting the correct OS major version from older OS, that I needed to use scanf against operatingsystemrelease and lsbdistrelease for systems where the latest Factor version wasn't providing the operatingsystemmajrelease or lsbmajdistrelease values.
So I have an example like:
$myrelease = scanf($lsbdistrelease, "%d")
Puppet is find with that function, but Geppetto is giving me Unknown function: 'scanf'.
I did some RTFM via Google and didn't find any references to correcting any unknown function errors for valid Puppet functions in 3.8 or 4.x. When I click on it I get options to change it to something like sprintf, but sprintf is not getting the required value and I am no Ruby sprintf guru to get it to disregard everything to the right of the . in the 7.2.1511 CentOS 7 has in operatingsystemrelease. Plus the scanf call works perfectly to do it as I need.
Can anyone enlighten me on how to give Geppetto an updated function list or does this need to be added to the next patch to Geppetto?