Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add db_encoding parameter for postgres #287

Merged
merged 1 commit into from
Apr 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add db_encoding parameter for postgres
Fixes #284
  • Loading branch information
treydock committed Apr 14, 2023
commit 9fbf5dd516c3144d0a48285727ee8d50b8d32ebc
2 changes: 1 addition & 1 deletion manifests/db/postgres.pp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
postgresql::server::db { $keycloak::db_url_database:
user => $keycloak::db_username,
password => postgresql::postgresql_password($keycloak::db_username, $keycloak::db_password),
encoding => 'UTF8',
encoding => $keycloak::db_encoding,
}
}
}
3 changes: 3 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,8 @@
# MySQL and MariaDB database charset
# @param db_collate
# MySQL and MariaDB database collate
# @param db_encoding
# PostgreSQL database encoding
# @param features
# Keycloak features to enable
# @param features_disabled
Expand Down Expand Up @@ -252,6 +254,7 @@
String[1] $db_password = 'changeme',
String $db_charset = 'utf8',
String $db_collate = 'utf8_general_ci',
String $db_encoding = 'UTF8',
Optional[Array[String[1]]] $features = undef,
Optional[Array[String[1]]] $features_disabled = undef,
Boolean $truststore = false,
Expand Down