Add backup node parameter to class

This commit is contained in:
Patrik Holmqvist 2025-01-17 12:54:28 +01:00
parent c0815e672c
commit 9d9b21040d
Signed by: pahol
GPG key ID: 5D5B0D4E93F77273

View file

@ -2,7 +2,8 @@
# This tests the backup and restores when manged by sunet::baas2 from puppet-sunet # This tests the backup and restores when manged by sunet::baas2 from puppet-sunet
# Jira-ref: SUNETOPS-1997 # Jira-ref: SUNETOPS-1997
class net::baas2_restoretest( class net::baas2_restoretest(
Enum['backupnode', 'restorenode'] $node_type = undef, Enum['backupnode', 'restorenode'] $node_type,
String $backup_nodename,
) { ) {
file { '/opt/baas2': file { '/opt/baas2':
@ -57,7 +58,7 @@ class net::baas2_restoretest(
} }
sunet::scriptherder::cronjob { 'baas2-validate-backup-files': sunet::scriptherder::cronjob { 'baas2-validate-backup-files':
cmd => '/opt/baas2/validate-backup-files', cmd => "/opt/baas2/validate-backup-files ${backup_nodename}",
minute => '5', minute => '5',
hour => '8', hour => '8',
ok_criteria => ['exit_status=0', 'max_age=48h'], ok_criteria => ['exit_status=0', 'max_age=48h'],