Sha256: bc7c8a7dd17c06ad74bc6ba8460eee9ebce7780bdc642fa147c1b57404c0bf49

Contents?: true

Size: 720 Bytes

Versions: 6

Compression:

Stored size: 720 Bytes

Contents

class freighthop::database::postgres(
  $db_names,
  $users,
) {
  include postgresql::server

  postgresql::server::pg_hba_rule { 'local-users-get-everything':
    type        => 'local',
    database    => 'all',
    user        => 'all',
    auth_method => 'trust',
    order       => '0001',
  }
  postgresql::server::pg_hba_rule { 'local-host-connections-get-everything':
    type        => 'host',
    database    => 'all',
    user        => 'all',
    address     => '127.0.0.1/32',
    auth_method => 'trust',
    order       => '0001',
  }
  postgresql::server::database { $db_names: }
  postgresql::server::role { $users:
    superuser     => true,
    createdb      => true,
    createrole    => true,
  }
}

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
freighthop-0.2.1 local_modules/freighthop/manifests/database/postgres.pp
freighthop-0.2.1 modules/freighthop/manifests/database/postgres.pp
freighthop-0.2.0 local_modules/freighthop/manifests/database/postgres.pp
freighthop-0.2.0 modules/freighthop/manifests/database/postgres.pp
freighthop-0.1.0 local_modules/freighthop/manifests/database/postgres.pp
freighthop-0.1.0 modules/freighthop/manifests/database/postgres.pp