---

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')}"

lv:
  postgresql:
    pv:
      - '/dev/sdb1'
      - '/dev/sdd1'
    vg: 'backups'
  data:
    pv: '/dev/sdc1'
    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')}"

lv:
  postgresql:
    pv:
      - '/dev/sdb1'
      - '/dev/sdd1'
      - '/dev/sde1'
    vg: 'backups'
  data:
    pv: '/dev/sdc1'
    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'

Extend backups disk for postgres primary
Extend backups disk for postgres primary

This adds an extra disk to the postgres primary machine.

This will be used for the backups, which has been slowly filling up
over the last months.

![https://graphite.publishing.service.gov.uk/render?from=20160201&until=
20
160226&width=600&height=300&target=postgresql-primary-1_backend.df-var-l
ib-autopostgresqlbackup.df_complex-free](https://graphite.publishing.ser
vice.gov.uk/render?from=20160201&until=20
160226&width=600&height=300&target=postgresql-primary-1_backend.df-var-l
ib-autopostgresqlbackup.df_complex-free)

Backups are increasing with about 2GB per month, so adding 32GB extra
will prevent this problem from occurring for at least 6 months.

PR on govuk-provisioning:
https://github.gds/gds/govuk-provisioning/pull/521
