Puppet Class: falco::service
- Inherits:
 - falco
 
- Defined in:
 - manifests/service.pp
 
Summary
Controls the state of the falco and falcoctl servicesOverview
Controls the state of the falco and falcoctl services
        5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  | 
      
        # File 'manifests/service.pp', line 5
class falco::service inherits falco {
  service { "falco-${falco::driver}":
    ensure     => $falco::service_ensure,
    enable     => $falco::service_enable,
    hasstatus  => true,
    hasrestart => $falco::service_restart,
  }
  # Stop and mask the automatic ruleset updates service if automatic ruleset
  # updates are disabled. Otherwise, it's state is managed by the falco service.
  unless $falco::auto_ruleset_updates {
    service { 'falcoctl-artifact-follow':
      ensure => 'stopped',
      enable => 'mask',
    }
  }
}
       |