Puppet Class: keycloak::db::postgres

Defined in:
manifests/db/postgres.pp

Summary

Manage postgres DB

Overview



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'manifests/db/postgres.pp', line 4

class keycloak::db::postgres {
  assert_private()

  if $keycloak::manage_db_server {
    contain postgresql::server
  }

  if $keycloak::manage_db {
    postgresql::server::db { $keycloak::db_url_database:
      user     => $keycloak::db_username,
      password => postgresql::postgresql_password($keycloak::db_username, $keycloak::db_password),
      encoding => $keycloak::db_encoding,
    }
  }
}