Skip to content

Instantly share code, notes, and snippets.

@tonybruess
Last active November 27, 2017 18:56
Show Gist options
  • Save tonybruess/86fb0c9196a5e87c9aae to your computer and use it in GitHub Desktop.
Save tonybruess/86fb0c9196a5e87c9aae to your computer and use it in GitHub Desktop.
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