Resource Type: sensu_postgres_config

Defined in:
lib/puppet/type/sensu_postgres_config.rb
Providers:
sensuctl

Summary

Manages Sensu postgres config

Overview

Examples:

Create an PostgreSQL datastore

sensu_postgres_config { 'puppet':
  ensure    => 'present',
  dsn       => 'postgresql://sensu:changeme@localhost:5432/sensu',
  pool_size => 20,
}

Properties

  • dsn

    Use the dsn attribute to specify the data source names as a URL or PostgreSQL connection string

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent
  • pool_size

    The maximum number of connections to hold in the PostgreSQL connection pool

    Supported values:
    • /^[0-9]+$/

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.