Skip to content
Yusuke Nakamura edited this page Dec 2, 2021 · 29 revisions

Resource Type

Common Attributes

All resource types have the following common attributes.

  • action
    • Symbol or Array
    • If you would like to execute multiple actions, the action can be an Array of Symbols.
  • only_if
    • String
    • If only_if command exits with non-zero status, the resource will not be executed.
  • not_if
    • String
    • If not_if command exits with zero status, the resource will not be executed.
  • notifies
    • notifies :action, resource_type[resource_name]", :delayed (:delayed is a default value)
    • notifies :action, resource_type[resource_name]", :immediately
  • subscribes
    • subscribes :action, resource_type[resource_name]", :delayed (:delayed is a default value)
    • subscribes :action, resource_type[resource_name]", :immediately
  • user
    • String
    • If you specified this, commands related with the resource will be executed as the user.

Do not edit this page because this is generated automatically with Itamae v1.12.3

Clone this wiki locally