diff --git a/global/overlay/etc/puppet/modules/net/manifests/baas2_restoretest.pp b/global/overlay/etc/puppet/modules/net/manifests/baas2_restoretest.pp index 7eaca65..519a48d 100644 --- a/global/overlay/etc/puppet/modules/net/manifests/baas2_restoretest.pp +++ b/global/overlay/etc/puppet/modules/net/manifests/baas2_restoretest.pp @@ -55,6 +55,13 @@ class net::baas2_restoretest( owner => 'root', content => file('net/baas2_restoretest/baas2-check-restore-status') } + + sunet::scriptherder::cronjob { 'baas2-validate-backup-files': + cmd => '/opt/baas2/validate-backup-files', + minute => '5', + hour => '8' + ok_criteria => ['exit_status=0', 'max_age=48h'], + } } if $node_type == 'backupnode' { @@ -71,6 +78,13 @@ class net::baas2_restoretest( owner => 'root', content => file('net/baas2_restoretest/gen-backup-files') } + + sunet::scriptherder::cronjob { 'baas2-gen-backup-files': + cmd => '/opt/baas2/gen-backup-files', + minute => '25', + hour => '14' + ok_criteria => ['exit_status=0', 'max_age=48h'], + } } }