Hello Group,
My code was working in 2.7.X puppetserver version but it is not running on puppetmaster 3.8.7.
Facter version :
facter -v
1.7.5
my code is :
require 'facter'
Facter.add(:xyz_version) do
confine :kernel => "Linux"
setcode do
Facter::Core::Execution.execute('/bin/cat /var/xyz/installation.log | /bin/grep "CCHIDS VERSION" | /bin/grep -o "[0-9].[0-9]"')
end
end
please guide.
If these types of command can not be executed in this version of puppet, what is the other solutions/Alternatives.
Can it be done via ruby, please guide with some examples.
Regards,
Abhishek Singh