Skip to content

Latest commit

 

History

History
10 lines (6 loc) · 290 Bytes

resources_common_guards_properties.md

File metadata and controls

10 lines (6 loc) · 290 Bytes

The following properties can be used to define a guard that is evaluated during the execution phase of a Chef Infra Client run:

not_if

: Prevent a resource from executing when the condition returns true.

only_if

: Allow a resource to execute only if the condition returns true.