fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
1.1 KiB

  1. summary: "MongoDB server"
  2. maintainer: "Valentin Lab <valentin.lab@kalysto.org>"
  3. data-resources:
  4. - /var/lib/mongodb
  5. config-resources:
  6. - /etc/mongod.conf
  7. provides:
  8. mongo-database:
  9. uses:
  10. schedule-command:
  11. constraint: optional
  12. auto: pair
  13. solves:
  14. backup: "Automatic regular backups"
  15. default-options:
  16. schedule: "47 * * * *" ## schedule backup every hour
  17. ## This one is useful only if previous relation is used
  18. backup:
  19. constraint: recommended
  20. auto: pair
  21. solves:
  22. backup: "Automatic regular backups of dumps"
  23. default-options:
  24. ## First pattern matching wins, no pattern matching includes.
  25. ## include-patterns are checked first, then exclude-patterns
  26. ## Patterns rules:
  27. ## - ending / for directory
  28. ## - '*' authorized
  29. ## - must start with a '/', will start from $SERVICE_DATASTORE
  30. # include-patterns:
  31. # - /var/backups/mongo/
  32. exclude-patterns:
  33. - "/var/lib/" ## mongo working data files
  34. - "/var/backups/mongo/*.inprogress/" ## database dump in progress