---

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'

---

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'
      - '/dev/sdk1'
    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 another pv to the postgres-primary backup lv
Add another pv to the postgres-primary backup lv

- Daily backups were consistently failing due to the backups reaching
the maximum size the filesystem allowed.
- Added 128G partition and manually extended the lvm managed backup
drive.
- Missed to add the change here in the first instance, which causes
Puppet to fail to run on the Postgresql-primary-1

@schmie
