Skip to content

Commit 0c5c270

Browse files
elfranneh0tw1r3
authored andcommitted
Set UTF8 encoding and locale when creating the DB
1 parent 3afd693 commit 0c5c270

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

manifests/database/postgresql.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@
149149
postgresql::server::db { $database_name:
150150
user => $database_username,
151151
password => $database_password,
152+
encoding => 'UTF8',
153+
locale => 'en_US.UTF-8',
152154
grant => 'all',
153155
port => $port,
154156
}

spec/unit/classes/database/postgresql_spec.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@
6262
password: params[:database_password],
6363
grant: 'all',
6464
port: params[:database_port].to_i,
65+
encoding: 'UTF8',
66+
locale: 'en_US.UTF-8',
6567
)
6668
}
6769

0 commit comments

Comments
 (0)