ansible / ansible-policy

ansible-policy is a prototype implementation which allows us to define and set constraints to the Ansible project in OPA Rego language.
Apache License 2.0
20 stars 10 forks source link

add search, match, regex, and select operators #51

Closed saki-takano closed 1 month ago

saki-takano commented 1 month ago

Signed-off-by: Saki-Takano SakiTakano@ibm.com

Add operators as supported in Rulebook.

  1. is search, is not search (not yet support regex) (supported ignorecase)
  2. is match, is not match (not yet support regex) (supported ignorecase)
  3. is regex, is not regex
  4. is select, is not select
  5. is selectattr, is not selectattr

Add integration and unit tests for each operator.