chocolatey-archive / puppet-chocolatey

Chocolatey package provider
Apache License 2.0
87 stars 135 forks source link

Choco_install_path facter #136

Open perfecto25 opened 8 years ago

perfecto25 commented 8 years ago

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

ferventcoder commented 8 years ago

I think this may have been confined in puppetlabs-chocolatey. We will see if updating that will fix this issue or not. Thanks