Rexfile foundations
Running ad-hoc commands as shown in Minimum Viable Rex provides a good way to start benefiting from Rex, the friendly automation framework. Then sometimes we have to repeat our typical procedures. Other times it would work best if we could enable others to follow the same steps.
Just like GNU Make uses a Makefile to describe actions, Rex uses a Rexfile to describe our common procedures as code through the following foundational elements:
- dependencies
- configuration
- inventory
- authentication
- tasks
- arbitrary Perl code
While we may treat most elements optional depending on the use case, letβs take an initial look at each.