Hello Jose.
That was spot on ! Changed the script using the full path to both binaries
did the trick:
Facter.add(:php_version) do
setcode do
Facter::Util::Resolution.exec('/usr/local/bin/php-config
--version|/bin/awk -F "." \'{print $1$2}\'')
end
end
Thanks ! That made my day :-)
>
--
Hi all.
I have a very simple Custom Fact
in /etc/puppet/modules/facts/lib/facter/php_version.rb :
Facter.add(:php_version) do
setcode do
Facter::Util::Resolution.exec('php-config --version|awk -F "." \'{print
$1$2}\'')
end
end
It gets deployed and if I run "facter -p |grep php " on th