Module postgresql

Typedefs

typedef postgresql::username_t
  • Base type string

  • Type constraint /[a-z0-9]*/

Entities

entity postgresql::Database

Parents: std::PurgeableResource

attribute string db_name
relation postgresql::PostgresqlServer server [1]

other end: postgresql::PostgresqlServer.databases [0:*]

relation postgresql::User owner [1]

other end: postgresql::User.databases [0:*]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity postgresql::PostgresqlServer

Parents: ip::services::Server

attribute bool managed=true
relation postgresql::Database databases [0:*]

other end: postgresql::Database.server [1]

relation postgresql::User users [0:*]

other end: postgresql::User.server [1]

relation std::Entity _packages [0:*]

internal Wait point: do Something(requires=_packages) to wait for all packages to be installed

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity postgresql::PostgresqlTools

Parents: std::Entity

Install the postgresql client tools on a host.

relation std::Host host [1]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity postgresql::User

Parents: std::PurgeableResource

attribute postgresql::username_t username
attribute string password
attribute string[] from=List()

network location this user is allowed to connect from

relation postgresql::PostgresqlServer server [1]

other end: postgresql::PostgresqlServer.users [0:*]

relation postgresql::Database databases [0:*]

other end: postgresql::Database.owner [1]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity postgresql::ha::Master

Parents: postgresql::PostgresqlServer

attribute string synchronous_standby_names='inmanta'
attribute string replication_slot_name='replication'
attribute string replication_user='replication'
attribute string replication_user_password
attribute string synchronous_commit='off'
relation postgresql::ha::Standby standby [1]

other end: postgresql::ha::Standby.master [1]

relation postgresql::ha::ReplicationSlot replication_slot [1]

other end: postgresql::ha::ReplicationSlot.server [1]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

entity postgresql::ha::ReplicationSlot

Parents: std::PurgeableResource

relation postgresql::ha::Master server [1]

other end: postgresql::ha::Master.replication_slot [1]

The following implements statements select implementations for this entity:

entity postgresql::ha::Standby

Parents: postgresql::PostgresqlServer

relation postgresql::ha::Master master [1]

other end: postgresql::ha::Master.standby [1]

The following implementations are defined for this entity:

The following implements statements select implementations for this entity:

Implementations

implementation postgresql::db_requires
implementation postgresql::install
implementation postgresql::install_tools
implementation postgresql::postgresqlServer
implementation postgresql::user_requires
implementation postgresql::ha::postgresqlMaster
implementation postgresql::ha::postgresqlStandby

Resources

class postgresql.resources.Database
class postgresql.resources.User
class postgresql.resources.ReplicationSlot

Handlers

class postgresql.resources.DatabaseProvider
class postgresql.resources.UserProvider
class postgresql.resources.ReplicationSlotProvider