---
dependencies:
  - role: meta/repository
    repository_key: '0x9ecbec467f0ceb10'
    repository_url: 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'
  - role: meta/monitor
    monitor_name: mongodb
    monitor_pidfile: "{{ mongodb_pidfile_path }}"
    monitor_user: "{{ mongodb_user }}"
    when: mongodb_server

# New logging method awaiting mongodb regex formatting
#   - role: packages/fluentd
#     fluentd_sources:
#       - path: "{{ mongodb_log_path }}"
#         format: ''
#         tag: mongodb.service

  - role: package/logrotate
    logrotate_name: mongodb

---
dependencies:
  - role: meta/repository
    repository_key: '0x9ecbec467f0ceb10'
    repository_url: 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen'
  - role: meta/monitor
    monitor_name: mongodb
    monitor_pidfile: "{{ mongodb_pidfile_path }}"
    monitor_user: "{{ mongodb_user }}"
    when: mongodb_server

# New logging method awaiting mongodb regex formatting
#   - role: package/fluentd
#     fluentd_sources:
#       - path: "{{ mongodb_log_path }}"
#         format: ''
#         tag: mongodb.service

  - role: package/logrotate
    logrotate_name: mongodb

Package should not be pluralized. Derp
Package should not be pluralized. Derp
