Files
puppet-murano/manifests/db/postgresql.pp
Takashi Kajinami a1f995a738 replace validate_legacy with proper data types
the validate_legacy function is marked for deprecation in
v9.0.0 from puppetlabs-stdlib.

Change-Id: I61801a0dcebd2d09e45c0a96195e244fad8c0906
2023-06-20 22:25:59 +09:00

50 lines
1.0 KiB
Puppet

# == Class: murano::db::postgresql
#
# The murano::db::postgresql creates a PostgreSQL database for murano.
# 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 'murano'.
#
# [*user*]
# (Optional) User to connect to the database.
# Defaults to 'murano'.
#
# [*encoding*]
# (Optional) The charset to use for the database.
# Default to undef.
#
# [*privileges*]
# (Optional) Privileges given to the database user.
# Default to 'ALL'
#
class murano::db::postgresql(
String[1] $password,
$dbname = 'murano',
$user = 'murano',
$encoding = undef,
$privileges = 'ALL',
) {
include murano::deps
::openstacklib::db::postgresql { 'murano':
password => $password,
dbname => $dbname,
user => $user,
encoding => $encoding,
privileges => $privileges,
}
Anchor['murano::db::begin']
~> Class['murano::db::postgresql']
~> Anchor['murano::db::end']
}