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.
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'manifests/tools/lockrun.pp', line 9
class lsys::tools::lockrun {
$os_release_major = $facts['os']['release']['major']
if $facts['os']['name'] in ['RedHat', 'CentOS'] 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',
}
}
}
|