diff options
author | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-08 15:37:28 +0200 |
---|---|---|
committer | Nicolas Lécureuil <neoclust@mageia.org> | 2017-04-08 15:37:28 +0200 |
commit | 93410063ee889eebd1a57f8afb4149cea18e277e (patch) | |
tree | a8abfc136f47c73de83e7ff26fa69722a84296b4 /modules/postgresql | |
parent | 59947399efe5e6640449a19c666e396984558a1b (diff) | |
download | puppet-93410063ee889eebd1a57f8afb4149cea18e277e.tar puppet-93410063ee889eebd1a57f8afb4149cea18e277e.tar.gz puppet-93410063ee889eebd1a57f8afb4149cea18e277e.tar.bz2 puppet-93410063ee889eebd1a57f8afb4149cea18e277e.tar.xz puppet-93410063ee889eebd1a57f8afb4149cea18e277e.zip |
Try to create UTF-8 databases
Diffstat (limited to 'modules/postgresql')
-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 395c4f83..2ea08e78 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}' --encoding=UTF-8": + exec { "createdb -O ${user} -U postgres ${name} '${description}' -E UTF8": user => 'root', unless => "psql -A -t -U postgres -l | grep '^${name}|'", require => Service['postgresql'], |