Created
December 21, 2015 16:35
-
-
Save arubdesu/759fd06138f6db049a2f to your computer and use it in GitHub Desktop.
Puppet facts for munki reporting
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add(:munki_catalog_array) do | |
confine :kernel => "Darwin" | |
setcode do | |
Dir.entries('/Library/Managed Installs/catalogs').select {|f| !File.directory? f} | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Facter.add(:munki_included_manifests) do | |
confine :kernel => "Darwin" | |
setcode do | |
includes = Dir.entries('/Library/Managed Installs/manifests').select {|f| !File.directory? f} | |
just_relevants = includes - ['SelfServeManifest','client_manifest.plist'] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment