Created — forked from kwilczynski/gist:2051811

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Noop Fact for Puppet

View gist:2053274
1 2 3 4 5 6 7 8 9 10 11 12 13
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.