Last active
December 19, 2019 13:19
-
-
Save ripienaar/f71f6f377b3b8e3229f72658dd828fda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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