Not logged in


Actions or types are a scripts that will be run locally.\

When a procedure is working, just script it to be as generic as possible, and you have an action ready to deploy on any machine.

Each action/type has a folder with its name in the scripts, and two scripts discovery: which returns 0 if there is nothing to do action’s name: is the main script run on the local machine. It can also call lcd to do other actions

Special actions: Discover

Scripts in the folder discover will be run once before running the action on the machine.

It is used to define facts as called in puppet or variables that can be used many times in the actions.

It avoids making a call to all the lcd wrapper (and sync for every fact we need)

  • os: gives the distro’s name

  • arch: gives the machine’s architecture