Check if private-address is a CNAME, and use the A record if that's the case.
Merge lp:~ahasenack/charms/precise/postgresql/postgresql-avoid-cname per https://code.launchpad.net/~ahasenack/charms/precise/postgresql/postgresql-avoid-cname/+merge/195283