Sample rules for one-time run exception groups
These examples show several ways to configure rules for one-time run exception child groups. Where multiple rules are listed, combine the rules by specifying that nodes must match all rules.
Testing scenario | Fact | Operator | Value |
---|---|---|---|
Permit any node in the parent environment group to use any Puppet environment | agent_specified_environment | ~ | .+ |
Permit RHEL nodes in the parent environment group to use any Puppet environment | agent_specified_environment | ~ | .+ |
facts.os.family | = | RedHat | |
Permit any nodes in the parent environment group to use any Puppet environment except production | agent_specified_environment | ~ | .+ |
agent_specified_environment | != | production | |
Permit any nodes in the parent environment group to use any Puppet environment that begins with the prefix "feature_ | agent_specified_environment | ~ | ^feature_.+ |