From 8a997a120340c2d3a4275131168474e023d8757b Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Fri, 3 Sep 2021 14:31:15 +0200 Subject: [PATCH] fix #39 Extend icinga::database with a parameter to set database encoding --- manifests/database.pp | 3 +++ metadata.json | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/manifests/database.pp b/manifests/database.pp index f7391a2..f3bea95 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -10,6 +10,7 @@ String $db_name, String $db_user, Array[String] $mysql_privileges, + Optional[String] $db_encoding = undef, ) { if $db_type == 'pgsql' { @@ -24,6 +25,7 @@ postgresql::server::db { $db_name: user => $db_user, password => $_password, + encoding => $db_encoding, } $access_instances.each |$host| { @@ -51,6 +53,7 @@ user => $db_user, password => $db_pass, grant => $mysql_privileges, + charset => $db_encoding, } delete_at($access_instances,0).each |$host| { diff --git a/metadata.json b/metadata.json index 29d5118..f8a17f0 100644 --- a/metadata.json +++ b/metadata.json @@ -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",