File: cron_trigger.pp

package info (click to toggle)
puppet-module-mistral 25.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,004 kB
  • sloc: ruby: 2,093; python: 38; makefile: 11; sh: 10
file content (38 lines) | stat: -rw-r--r-- 1,197 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# == Class: mistral::cron_trigger
#
# Configure the mistral cron_trigger
#
# === Parameters
#
# [*enabled*]
#   (Optional) If this value is set to False then the subsystem of
#   cron triggers is disabled.
#   Disabling cron triggers increases system performance.
#   (boolean value)
#   Defaults to $facts['os_service_default'].
#
# [*execution_interval*]
#   (Optional) This setting defines how frequently Mistral checks for cron
#   triggers that need execution. By default this is every second
#   which can lead to high system load. Increasing the number will
#   reduce the load but also limit the minimum frequency. For
#   example, a cron trigger can be configured to run every second
#   but if the execution_interval is set to 60, it will only run
#   once per minute.
#   (integer value)
#   Defaults to $facts['os_service_default'].
#
#
class mistral::cron_trigger (
  $enabled            = $facts['os_service_default'],
  $execution_interval = $facts['os_service_default'],
) {

  include mistral::deps
  include mistral::params

  mistral_config {
    'cron_trigger/enabled':             value => $enabled;
    'cron_trigger/execution_interval':  value => $execution_interval;
  }
}