hw-cookbooks/repmgr — pull request #1 by dje (2012-12-02 23:17:44+00:00)
Title: 'make it work' pass

WIP. Please do not merge yet.

This first pass was enough to get chef-client to mostly complete.

I'm currently holding at this error:

```
[2012-12-02T23:16:25+00:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: execute[register master node] (repmgr::setup line 4) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '6'
---- Begin output of repmgr -f /etc/repmgr/repmgr.conf master register ----
STDOUT: WARNING: node_name/pretest.dnsimple.com: Unknown name/value pair!
STDERR: Connection to database failed: FATAL: no pg_hba.conf entry for host "10.0.0.137", user "replication_user", database "replication_db", SSL on
FATAL: no pg_hba.conf entry for host "10.0.0.137", user "replication_user", database "replication_db", SSL off
---- End output of repmgr -f /etc/repmgr/repmgr.conf master register ----
Ran repmgr -f /etc/repmgr/repmgr.conf master register returned 6
```

I'm going to read up on postgres replication a bit before trying to work through this one.