landcareresearch-check_run

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.


License
GPL-3.0+
Install
puppet module install landcareresearch-check_run --version 6.0.0

Documentation

check_run

Puppet Forge Bitbucket Build Status

Overview

Manages tasks checking if a task has run or if a task should run.

Module Description

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.

Usage

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",
}

Limitations

Only works with redhat & debian based OS's.

Development

The module is open source and available on bitbucket. Please fork!

Testing

The vagrant directory contains the vagrant scripts for functional testing. See the readme.md file in this directory for additional information.