Changing Robusta's builtin actions¶
Some users may want to change playbook actions built into Robusta. This is useful when fixing bugs or adding new features.
Override a single builtin action¶
To do so, implement and load another action with the same name. For example, to override the builtin
just load your own action named
Override all default actions at once¶
If you're going to modify many builtin playbooks, it may be easier to fork the defaults and load everything at once from your fork.
(By fork, we mean copy-pasting the
playbooks/robusta_playbooks folder, not a literal git fork.)
To do so, copy the
playbooks/robusta_playbooks folder to a custom playbook repository, and load it under the
robusta_playbooks. This will override all the defaults with your version.
For example, if you want to override the
Create a playbooks package for your action.
Create a new
resource_babysitteraction inside it.
Push the playbooks package:
robusta playbooks push ./my-custom-playbooks-package