Manages tasks checking if a task has run or if a task should run. This is primarily useful for running a one off command for installation.
Repository Puppet Puppet Download
puppet module install landcareresearch-check_run --version 6.0.0
Manages tasks checking if a task has run or if a task should run.
Runs a command only once using a file based approach to indicate a task was run. This is primarily useful for running a one off command for installation.
Make sure that check_run is included in order to use its variables
include check_run
$task_name = 'test_run'
Runs the command only once and will not execute after this one
check_run::task{$task_name:
exec_command => "/usr/bin/touch $check_run::root_dir/ttt",
}
Only works with redhat & debian based OS's.
The module is open source and available on bitbucket. Please fork!
The vagrant directory contains the vagrant scripts for functional testing. See the readme.md file in this directory for additional information.