not really an issue, but a comment this facter requires a confine, otherwise my linux hosts reporting chocolatey path with 'facter -p' require 'pathname' require Pathname.new(**FILE**).dirname + '../' + 'puppet_x/chocolatey/chocolatey_install' Facter.add('choco_install_path') do **confine :kernel => windows** setcode do PuppetX::Chocolatey::ChocolateyInstall.install_path end end
not really an issue, but a comment
this facter requires a confine, otherwise my linux hosts reporting chocolatey path with 'facter -p'
require 'pathname'
require Pathname.new(FILE).dirname + '../' + 'puppet_x/chocolatey/chocolatey_install'
Facter.add('choco_install_path') do
confine :kernel => windows
setcode do
PuppetX::Chocolatey::ChocolateyInstall.install_path
end
end