Add backup node parameter to class
This commit is contained in:
parent
c0815e672c
commit
9d9b21040d
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
|||
# This tests the backup and restores when manged by sunet::baas2 from puppet-sunet
|
||||
# Jira-ref: SUNETOPS-1997
|
||||
class net::baas2_restoretest(
|
||||
Enum['backupnode', 'restorenode'] $node_type = undef,
|
||||
Enum['backupnode', 'restorenode'] $node_type,
|
||||
String $backup_nodename,
|
||||
) {
|
||||
|
||||
file { '/opt/baas2':
|
||||
|
@ -57,7 +58,7 @@ class net::baas2_restoretest(
|
|||
}
|
||||
|
||||
sunet::scriptherder::cronjob { 'baas2-validate-backup-files':
|
||||
cmd => '/opt/baas2/validate-backup-files',
|
||||
cmd => "/opt/baas2/validate-backup-files ${backup_nodename}",
|
||||
minute => '5',
|
||||
hour => '8',
|
||||
ok_criteria => ['exit_status=0', 'max_age=48h'],
|
||||
|
|
Loading…
Add table
Reference in a new issue