Skip to content

Commit

Permalink
enchancement #39 Extend icinga::database with a parameter to set data…
Browse files Browse the repository at this point in the history
…base encoding
  • Loading branch information
lbetz committed Sep 3, 2021
1 parent 899616c commit 977f93b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions manifests/database.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
String $db_name,
String $db_user,
Array[String] $mysql_privileges,
Optional[String] $db_encoding = undef,
) {

if $db_type == 'pgsql' {
Expand All @@ -24,6 +25,7 @@
postgresql::server::db { $db_name:
user => $db_user,
password => $_password,
encoding => $db_encoding,
}

$access_instances.each |$host| {
Expand Down Expand Up @@ -51,6 +53,7 @@
user => $db_user,
password => $db_pass,
grant => $mysql_privileges,
charset => $db_encoding,
}

delete_at($access_instances,0).each |$host| {
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "icinga-icinga",
"version": "2.3.2",
"version": "2.3.3",
"author": "Icinga",
"summary": "Puppet Module to manage Icinga repositories and provides a base class for Icinga Redis",
"license": "Apache-2.0",
Expand Down

0 comments on commit 977f93b

Please sign in to comment.