Resource Type: pg_role

Defined in:
lib/puppet/type/pg_role.rb
Providers:
simple

Overview

This type allows you to manage a role/user in a Postgres database. Here is an example:

pg_role { role_name@instance:
  password  => 'verysecret',
  login     => true,
  create_db => true,
}

The ‘pg_role` type recognises all of the options you also have when using SQL to create a user or a role.

Properties

  • ensure (defaults to: present)

    The basic property that the resource should be in.

    Supported values:
    • present
    • absent

Parameters

  • provider

    The specific backend to use for this ‘pg_role` resource. You will seldom need to specify this — Puppet will usually discover the appropriate provider for your platform.