Validate status of cron resource

This makes sure that the supported value is used for the parameters
which determine the ensure property of a cron resource type.

Change-Id: I1abe90a8f060804c6cc1660158360dfeac4495ad
This commit is contained in:
Takashi Kajinami 2023-06-22 16:24:32 +09:00
parent 80da0affca
commit 91215fcb46
2 changed files with 18 additions and 18 deletions

View File

@ -54,14 +54,14 @@
# Defaults to $::keystone::params::user
#
class keystone::cron::fernet_rotate (
$ensure = present,
$minute = 1,
$hour = 0,
$monthday = '*',
$month = '*',
$weekday = '*',
$maxdelay = 0,
$user = $::keystone::params::user,
Enum['present', 'absent'] $ensure = present,
$minute = 1,
$hour = 0,
$monthday = '*',
$month = '*',
$weekday = '*',
$maxdelay = 0,
$user = $::keystone::params::user,
) inherits keystone::params {
include keystone::deps

View File

@ -61,16 +61,16 @@
# Defaults to $::keystone::params::user
#
class keystone::cron::trust_flush (
$ensure = present,
$minute = 1,
$hour = '*',
$monthday = '*',
$month = '*',
$weekday = '*',
Integer $maxdelay = 0,
Integer $age = 0,
$destination = '/var/log/keystone/keystone-trustflush.log',
$user = $::keystone::params::user,
Enum['present', 'absent'] $ensure = present,
$minute = 1,
$hour = '*',
$monthday = '*',
$month = '*',
$weekday = '*',
Integer $maxdelay = 0,
Integer $age = 0,
$destination = '/var/log/keystone/keystone-trustflush.log',
$user = $::keystone::params::user,
) inherits keystone::params {
include keystone::deps