Resource Type: sensu_postgres_config
- Defined in:
- lib/puppet/type/sensu_postgres_config.rb
- Providers:
-
sensuctl
Summary
Manages Sensu postgres configOverview
Autorequires:
Package[sensu-go-cli]
Service[sensu-backend]
Sensuctl_configure[puppet]
Sensu_api_validator[sensu]
Sensu_user[admin]
Examples:
Create an PostgreSQL datastore
sensu_postgres_config { 'puppet':
ensure => 'present',
dsn => 'postgresql://sensu:changeme@localhost:5432/sensu',
pool_size => 20,
}
Properties
-
batch_buffer
(defaults to: 0)
Maximum number of requests to buffer in memory.
Supported values:- /^[0-9]+$/
-
batch_size
(defaults to: 1)
Number of requests in each PostgreSQL write transaction
Supported values:- /^[0-9]+$/
-
batch_workers
Number of requests in each PostgreSQL write transaction, defaults to value for pool_size
Supported values:- /^[0-9]+$/
-
dsn
Use the dsn attribute to specify the data source names as a URL or PostgreSQL connection string
-
enable_round_robin
(defaults to: false)
If true, enables round robin scheduling on PostgreSQL
Supported values:- true
- false
-
ensure
(defaults to: present)
The basic property that the resource should be in.
Supported values:- present
- absent
-
pool_size
(defaults to: 0)
The maximum number of connections to hold in the PostgreSQL connection pool
Supported values:- /^[0-9]+$/
-
strict
(defaults to: false)
Perform configuration validation when configuring this resource
Supported values:- true
- false
Parameters
-
name (namevar)
The name of the postgres config
-
provider
The specific backend to use for this
sensu_postgres_config
resource. You will seldom need to specify this --- Puppet will usually discover the appropriate provider for your platform.