[Puppet Users] Re: Custom facts variables coming out empty on manifest

2014-04-29 Thread Paulo Pinto
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 :-) > --

[Puppet Users] Custom facts variables coming out empty on manifest

2014-04-29 Thread Paulo Pinto
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