aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-08 15:34:59 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-08 15:34:59 +0200
commit59947399efe5e6640449a19c666e396984558a1b (patch)
tree4a0a9981b79cf01ce85259acaa361269caca2aee
parent2cd0d8239d6bc47ff645431beb007af320c05093 (diff)
downloadpuppet-59947399efe5e6640449a19c666e396984558a1b.tar
puppet-59947399efe5e6640449a19c666e396984558a1b.tar.gz
puppet-59947399efe5e6640449a19c666e396984558a1b.tar.bz2
puppet-59947399efe5e6640449a19c666e396984558a1b.tar.xz
puppet-59947399efe5e6640449a19c666e396984558a1b.zip
Try to create UTF-8 databases
-rw-r--r--modules/postgresql/manifests/database.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/postgresql/manifests/database.pp b/modules/postgresql/manifests/database.pp
index 8c3b8656..395c4f83 100644
--- a/modules/postgresql/manifests/database.pp
+++ b/modules/postgresql/manifests/database.pp
@@ -3,7 +3,7 @@ define postgresql::database($description = '',
$user = 'postgres',
$callback_notify = '') {
- exec { "createdb -O ${user} -U postgres ${name} '${description}'":
+ exec { "createdb -O ${user} -U postgres ${name} '${description}' --encoding=UTF-8":
user => 'root',
unless => "psql -A -t -U postgres -l | grep '^${name}|'",
require => Service['postgresql'],