Skip to content

Instantly share code, notes, and snippets.

@jeffweiss
jeffweiss / gist:5249169
Last active December 15, 2015 10:58 — forked from ploubser/gist:5213863
require 'facter/lsb'
f = File.open('/tmp/file', 'a')
Facter.add(:operatingsystem) do
confine :kernel => :sunos
setcode do "Solaris" end
end
Facter.add(:operatingsystem) do
confine :kernel => :linux
{
"checksums": {
"tests/site.pp": "c094d16be278f045311fafb85d1806e3",
"spec/defines/jenkins_plugin_install_spec.rb": "f7e3588ee424091e05f2fdb1e4be9916",
"spec/classes/jenkins_spec.rb": "08ea3092e7b38375e5e1ab3087236fc0",
"features/deb_support.feature": "14789ecdb4e8ffd58195972969a652ce",
"features/support/boxes/deb/install-puppet-module.sh": "79dda31c04877e19075829f3540d1e31",
"features/support/boxes/deb/verify-jenkins-install": "7ac9d96ae93d0fa83b3343f17a0015bc",
"spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
"Rakefile": "aaa0fe1993278f346063b22c15385b3b",