8000 comtrya/docs/src/actions.md at main · DominicD/comtrya · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1.05 KB

actions.md

File metadata and controls

33 lines (25 loc) · 1.05 KB

Actions

As mentioned under the Manifests, actions are used to dictate an action that needs to be done to configuration a system. The following is an example of a simple action:

actions:
  # Action ID can be command.run or cmd.run
  - action: command.run
    command: echo
    args:
      - hi

The above does the following. It defines a list of actions. The action defined in a list of actions is the action for command.run, which runs the echo command, providing the argument of 'hi.' This results in something equivalent to running the following on a unix based system:

echo hi

Groups of actions provided

Comtrya provides multiple actions which are broken down into groups with the actions being apart of a larger group.

Footnotes

  1. Git actions will no longer be available in main or versions after 0.8.8. ↩

0