diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-08 15:34:59 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-08 15:34:59 +0200 |
commit | 59947399efe5e6640449a19c666e396984558a1b (patch) | |
tree | 4a0a9981b79cf01ce85259acaa361269caca2aee | |
parent | 2cd0d8239d6bc47ff645431beb007af320c05093 (diff) | |
download | puppet-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.pp | 2 |
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'], |