Sha256: 88586f103c29275f145a7e40098941c2237fbf092e05e382cc05474190a43eb1

Contents?: true

Size: 1009 Bytes

Versions: 6

Compression:

Stored size: 1009 Bytes

Contents

class { 'postgresql::server':
    config_hash => {
        'ip_mask_deny_postgres_user' => '0.0.0.0/32',
        'ip_mask_allow_all_users'    => '0.0.0.0/0',
        'listen_addresses'           => '*',
        'manage_redhat_firewall'     => true,
        'postgres_password'          => 'postgres',
    },
}

# TODO: in mysql module, the username includes, e.g., '@%' or '@localhost', which
#  affects the user's ability to connect from remote hosts.  In postgres this is
#  managed via pg_hba.conf; not sure if we want to try to reconcile that difference
#  in the modules or not.
postgresql::database_user{ 'redmine':
  # TODO: ensure is not yet supported
  #ensure        => present,
  password_hash => postgresql_password('redmine', 'redmine'),
  require       => Class['postgresql::server'],
}

postgresql::database_user{ 'dan':
  # TODO: ensure is not yet supported
  #ensure        => present,
  password_hash => postgresql_password('dan', 'blah'),
  require       => Class['postgresql::server'],
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
freighthop-0.0.6 modules/postgresql/examples/postgresql_user.pp
freighthop-0.0.5 modules/postgresql/examples/postgresql_user.pp
freighthop-0.0.4 modules/postgresql/examples/postgresql_user.pp
freighthop-0.0.3 modules/postgresql/examples/postgresql_user.pp
freighthop-0.0.2 modules/postgresql/examples/postgresql_user.pp
freighthop-0.0.1 modules/postgresql/examples/postgresql_user.pp