- Description
- Setup - The basics of getting started with puppet_utils
- Usage - Configuration options and additional functionality
- Reference - An under-the-hood peek at what the module is doing and how
- Limitations - OS compatibility, etc.
- Development - Guide for contributing to the module
puppet_utils is a collection of various utilities and examples, like tasks, plans and functions.
Just install this module or put it in your Puppetfile.
After installation, all functions, tasks and plans become available.
Echoes its parameter message
Returns $RANDOM - a number between 0 and 32767
- task_name (String)
- targets (Target, String or an array of either)
- task_args (optional, Hash)
- code block
ResultSet
run_task_until
executes the task specified in task_name
until the code block is true. The task will be executed at least once.
- node (String): the node to run the task on
Demonstrates two ways of calling a task inside a loop.
bolt plan run puppet_utils::run_task_until node=$node --modulepath $modulepath
Note: depends on puppetlabs/stdlib for the chomp() function
This is demo content, use it at your own risk.
All contributions are welcome in the form of pull requests.