---

govuk_safe_to_reboot::can_reboot: 'overnight'
govuk_safe_to_reboot::reason: 'Secondaries will reboot overnight if cluster is healthy'

lv:
  mongodb:
    pv:
    - '/dev/sdb1'
    - '/dev/sdd1'
    - '/dev/sdf1'
    vg: 'backup'
  data:
    pv: '/dev/sdc1'
    vg: 'mongodb'
  s3backups:
    pv: '/dev/sde1'
    vg: 'mongo'

mount:
  /var/lib/mongodb:
    disk: '/dev/mapper/mongodb-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/automongodbbackup:
    disk: '/dev/mapper/backup-mongodb'
    govuk_lvm: 'mongodb'
    mountoptions: 'defaults'
  /var/lib/s3backup:
    disk: '/dev/mapper/mongo-s3backups'
    govuk_lvm: 's3backups'
    mountoptions: 'defaults'

mongodb::server::replicaset_members:
  'api-mongo-1':
  'api-mongo-2':
  'api-mongo-3':
  'api-mongo-4':
    hidden: true
    priority: 0

icinga::client::checks::disk_time_window_minutes: 10

---

govuk_safe_to_reboot::can_reboot: 'overnight'
govuk_safe_to_reboot::reason: 'Secondaries will reboot overnight if cluster is healthy'

lv:
  mongodb:
    pv:
    - '/dev/sdb1'
    - '/dev/sdd1'
    - '/dev/sdf1'
    vg: 'backup'
  data:
    pv:
    - '/dev/sdc1'
    - '/dev/sdg1'
    vg: 'mongodb'
  s3backups:
    pv: '/dev/sde1'
    vg: 'mongo'

mount:
  /var/lib/mongodb:
    disk: '/dev/mapper/mongodb-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/automongodbbackup:
    disk: '/dev/mapper/backup-mongodb'
    govuk_lvm: 'mongodb'
    mountoptions: 'defaults'
  /var/lib/s3backup:
    disk: '/dev/mapper/mongo-s3backups'
    govuk_lvm: 's3backups'
    mountoptions: 'defaults'

mongodb::server::replicaset_members:
  'api-mongo-1':
  'api-mongo-2':
  'api-mongo-3':
  'api-mongo-4':
    hidden: true
    priority: 0

icinga::client::checks::disk_time_window_minutes: 10

Add additional disk to API Mongo boxes
Add additional disk to API Mongo boxes

This additional 64GB disk has been added to each api-mongo machine on
production and I'm in the process of adding this to staging. Currently
this has been configured manually on production and this will allow it
to be configured by puppet again.
