[COOK-3555] Rename example configuration to listen_addresses

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3490] Fix pg gem install for v9.2 on RHEL 6
[COOK-2383] Use postgresql 9.0 on Amazon Linux

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3553] Remove apt-get update

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3611] Fix Postgresql::ruby on ubuntu/debian and fix config for 9.3

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3566] Give the user's rules more priority than the default ones in pg_hba

The priority of the `pg_hba` entries is defined by their position in the file. The sooner they appear, the more priority it has.

The default `local` entry that uses the `ident` auth method has more priority than the node rules, because it appears before. This is problematic because the rule is pretty generic, it applies to all users and all databases. That means the user can't define a more specific rule, for example:

    local    database    username                                 md5

A rule like this would give access by socket to a `username` user to the `database` db using a password. But it won't work since the `ident` default rule appears before in the file.

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3599] Automatically add PGDG apt repo dep. on PostgreSQL version

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3597] Implement `initdb_locale` attribute for RHEL

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
[COOK-3685] Upgrade Repo Attributes for Postgresql 9.3

- Adds pgdg yum repo attributes for rhel based systems for 9.3
- Enhances pgdg yum repo attributes for newer 9.2 packages

Further information can be found here:  http://yum.postgresql.org/repopackages.php#pg93

Signed-off-by: Seth Vargo <sethvargo@gmail.com>
Version bump to v3.1.0
Version bump to v3.1.1