Puppet Class: lsys::tools::lockrun
- Defined in:
- manifests/tools/lockrun.pp
Summary
Lockrun installationOverview
launch a program out with a lockout so that only one can run at a time. It’s mainly intended for use out of cron so that our five-minute running jobs which run long don’t get walked on.
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'manifests/tools/lockrun.pp', line 12
class lsys::tools::lockrun (
Boolean $custom = false,
) {
$os_release_major = $facts['os']['release']['major']
if $custom and $facts['os']['family'] == 'RedHat' and $os_release_major in ['6', '7', '8'] {
file { '/usr/local/bin/lockrun':
ensure => file,
source => "puppet:///modules/lsys/lockrun/lockrun.el${os_release_major}",
owner => 'root',
group => 'root',
mode => '0750',
}
}
# install also util-linux to provide flock
include lsys::tools::system
}
|