Skip to content

Instantly share code, notes, and snippets.

@ripienaar
Last active December 19, 2019 13:19
Show Gist options
  • Select an option

  • Save ripienaar/f71f6f377b3b8e3229f72658dd828fda to your computer and use it in GitHub Desktop.

Select an option

Save ripienaar/f71f6f377b3b8e3229f72658dd828fda to your computer and use it in GitHub Desktop.
package choria
default allow = false
# run puppet only in development, with a fact filter and in USEAST1
allow {
input.action = "runonce"
input.agent = "puppet"
input.collective = "development"
count(input.filter.fact) > 0
input.site = "USEAST1"
}
# but can do status anywhere
allow {
input.agent = "puppet"
input.action = "status"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment