puppet-mistral/manifests/cron_trigger.pp
Takashi Kajinami 2ba57c62b9 Replace legacy facts and use fact hash
... because the latest lint no longer allows usage of legacy facts and
top scope fact.

Change-Id: Id54c1a0efdb797ab10ddfb002c790d7e01e4e078
2023-03-02 11:31:00 +09:00

39 lines
1.2 KiB
Puppet

# == 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;
}
}