Module postgresql¶
License: Apache 2.0
Version: 0.3.4
Upstream project: https://github.com/inmanta/postgresql.git
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:
postgresql::db_requires
constrainttrue
- entity postgresql::PostgresqlServer¶
Parents:
ip::services::Server
- attribute bool managed=true¶
- attribute int log_min_duration_statement=-1¶
- attribute bool pg_stat_statements=false¶
- 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:
postgresql::postgresqlServer
,postgresql::install
constraintmanaged
std::none
constraint(not managed)
- 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:
postgresql::install_tools
constrainttrue
- 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:
postgresql::user_requires
constrainttrue
- 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:
postgresql::install
,postgresql::ha::postgresqlMaster
constrainttrue
- 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:
std::none
constrainttrue
- 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:
postgresql::install
,postgresql::ha::postgresqlStandby
constrainttrue
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¶
Resource for entity
postgresql::Database
Id attribute
db_name
Agent name
server.host.name
- class postgresql.resources.User¶
Resource for entity
postgresql::User
Id attribute
username
Agent name
server.host.name
Handlers
postgresql.resources.UserProvider
- class postgresql.resources.ReplicationSlot¶
Resource for entity
postgresql::ha::ReplicationSlot
Id attribute
replication_user
Agent name
server.host.name
Handlers¶
- class postgresql.resources.DatabaseProvider¶
Handler name
postgresql-database
Handler for entity
postgresql::Database
- class postgresql.resources.UserProvider¶
Handler name
postgresql-user
Handler for entity
postgresql::User
- class postgresql.resources.ReplicationSlotProvider¶
Handler name
postgresql-user
Handler for entity
postgresql::ha::ReplicationSlot