Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Noop Fact for Puppet
Facter.add(:noop) do
confine :kernel => :linux
result = false
setcode do
unless Facter.value(:environment).match(/^(test|dev|qa)$/)
result = true unless Time.now.utc.hour.between?(1, 10)
end
result
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.