Puppet Class: vios_backup::config
- Defined in:
- manifests/config.pp
Summary
Creates a cron entry scheduling the VIOS backups.Overview
Schedules the backup job as specified in the main class
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'manifests/config.pp', line 4
class vios_backup::config {
# Declare local variables so the command line isn't ridiculously long
$retention = $vios_backup::days_retention
$cmd = $vios_backup::backup_command
$backup_dir = $vios_backup::base_directory
#
cron { 'vios_backup_schedule':
ensure => present,
command => "${cmd} ${backup_dir} ${retention}",
user => $vios_backup::user,
* => $vios_backup::cron_job,
}
}
|