Skip to content

Instantly share code, notes, and snippets.

@glarizza
Forked from kwilczynski/gist:2051811
Created March 16, 2012 22:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glarizza/2053274 to your computer and use it in GitHub Desktop.
Save glarizza/2053274 to your computer and use it in GitHub Desktop.
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