mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
! Make sure we add the Sysdig repo and call an update before trying to install Falco ! Remove the require in the service class to fix a dependencies loop * Bump the version to 0.4.0 falco-CLA-1.0-contributing-entity: Coveo Solutions Inc. falco-CLA-1.0-signed-off-by: Jean-Philippe Lachance <jplachance@coveo.com>
21 lines
462 B
Puppet
21 lines
462 B
Puppet
# == Class: falco::service
|
|
class falco::service inherits falco {
|
|
validate_bool($falco::service_enable)
|
|
|
|
case $falco::service_ensure {
|
|
true, false, 'running', 'stopped': {
|
|
$_service_ensure = $falco::service_ensure
|
|
}
|
|
default: {
|
|
$_service_ensure = undef
|
|
}
|
|
}
|
|
|
|
service { 'falco':
|
|
ensure => $_service_ensure,
|
|
enable => $falco::service_enable,
|
|
hasstatus => true,
|
|
hasrestart => $falco::service_restart,
|
|
}
|
|
}
|