---

govuk::safe_to_reboot::can_reboot: 'careful'
govuk::safe_to_reboot::reason: 'We take backups from this slave; rebooting during backup will cause it to fail'

govuk_postgresql::server::standby::master_host: 'postgresql-primary-1.backend'

lv:
  postgresql:
    pv: '/dev/sdb1'
    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: 'Apps point directly to this machine for reading.'

govuk_postgresql::server::standby::master_host: 'postgresql-primary-1.backend'

lv:
  postgresql:
    pv: '/dev/sdb1'
    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'

Update Postgres standby reboot reason
Update Postgres standby reboot reason

The backups actually come from the primary makeing the previous message
a bit confusing. However, the standby is still not safe to reboot
because apps read from the standby directly.
