Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class overcast::mongobackup {
file { '/root/mongo-backup':
source => 'puppet:///modules/overcast/mongo-backup',
mode => 0755,
}
cron { 'daily mongo backup':
command => '/root/mongo-backup',
user => 'root',
hour => 4,
require => File['/root/mongo-backup'],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment