Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Choco_install_path facter #136

Description

@perfecto25

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions