# PostgreSQL HA Master Installer v2

This version merges WireGuard automation into the master installer and makes the process safe to rerun.

What changed:
- WireGuard keys are generated on each server over SSH if missing
- Existing keys are reused
- `wg0.conf` is rebuilt and pushed again when rerun
- `install-node.sh` is idempotent enough for repeated runs
- env files are regenerated after public keys are collected

Start with:
```bash
chmod +x scripts/master-setup.sh
./scripts/master-setup.sh
```

Outputs go under:
- `scripts/output/<timestamp>/`
