Puppet Class: sahara::db::postgresql

Defined in:
manifests/db/postgresql.pp

Overview

Class: sahara::db::postgresql

The sahara::db::postgresql creates a PostgreSQL database for sahara. It must be used on the PostgreSQL server.

Parameters

password

(Required) Password to connect to the database.

dbname

(Optional) Name of the database. Defaults to ‘sahara’.

user

(Optional) User to connect to the database. Defaults to ‘sahara’.

encoding

(Optional) The charset to use for the database. Default to undef.

privileges

(Optional) Privileges given to the database user. Default to ‘ALL’

Parameters:

  • password (Any)
  • dbname (Any) (defaults to: 'sahara')
  • user (Any) (defaults to: 'sahara')
  • encoding (Any) (defaults to: undef)
  • privileges (Any) (defaults to: 'ALL')


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'manifests/db/postgresql.pp', line 27

class sahara::db::postgresql(
  $password,
  $dbname     = 'sahara',
  $user       = 'sahara',
  $encoding   = undef,
  $privileges = 'ALL',
) {

  include sahara::deps

  ::openstacklib::db::postgresql { 'sahara':
    password   => $password,
    dbname     => $dbname,
    user       => $user,
    encoding   => $encoding,
    privileges => $privileges,
  }

  Anchor['sahara::db::begin']
  ~> Class['sahara::db::postgresql']
  ~> Anchor['sahara::db::end']

}