Skip to content

Instantly share code, notes, and snippets.

@salekseev
Created June 10, 2017 15:39
Show Gist options
  • Save salekseev/8b911f8099b380ef95045d4a0440c84d to your computer and use it in GitHub Desktop.
Save salekseev/8b911f8099b380ef95045d4a0440c84d to your computer and use it in GitHub Desktop.
exec { 'restore_golden_mongodump':
path => '/usr/bin:/usr/sbin:/bin',
onlyif => [
'which mongorestore',
'echo "db.access_tokens.find()" | mongo --quiet graylog | grep prometheus',
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment