---

govuk_safe_to_reboot::can_reboot: 'no'
govuk_safe_to_reboot::reason: 'Single point of failure for any Postgres-writing apps'

govuk_postgresql::server::primary::slave_addresses:
  live:
    address: "%{hiera('postgresql_slave_addresses_live')}"
  dr:
    address: "%{hiera('postgresql_slave_addresses_dr')}"

icinga::client::contact_groups: 'urgent-priority'

lv:
  postgresql:
    pv:
      - '/dev/sda1'
      - '/dev/sdc1'
      - '/dev/sde1'
      - '/dev/sdf1'
      - '/dev/sdg1'
      - '/dev/sdh1'
    vg: 'backups'
  data:
    pv: '/dev/sdd1'
    vg: 'postgresql'

mount:
  /var/lib/postgresql:
    disk: '/dev/mapper/postgresql-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/autopostgresqlbackup:
    disk: '/dev/mapper/backups-postgresql'
    govuk_lvm: 'postgresql'
    mountoptions: 'defaults'

---

govuk_safe_to_reboot::can_reboot: 'no'
govuk_safe_to_reboot::reason: 'Single point of failure for any Postgres-writing apps'

govuk_postgresql::server::primary::slave_addresses:
  live:
    address: "%{hiera('postgresql_slave_addresses_live')}"
  dr:
    address: "%{hiera('postgresql_slave_addresses_dr')}"

icinga::client::contact_groups: 'urgent-priority'

lv:
  postgresql:
    pv:
      - '/dev/sda1'
      - '/dev/sdc1'
      - '/dev/sde1'
      - '/dev/sdf1'
      - '/dev/sdg1'
      - '/dev/sdh1'
      - '/dev/sdj1'
    vg: 'backups'
  data:
    pv:
      - '/dev/sdd1'
      - '/dev/sdi1'
    vg: 'postgresql'

mount:
  /var/lib/postgresql:
    disk: '/dev/mapper/postgresql-data'
    govuk_lvm: 'data'
    mountoptions: 'defaults'
  /var/lib/autopostgresqlbackup:
    disk: '/dev/mapper/backups-postgresql'
    govuk_lvm: 'postgresql'
    mountoptions: 'defaults'

Add disks to postgres production
Add disks to postgres production

Email Alert Api is expected to produce large volumes of data. Add both
data and backup space to handle the extra volume.
