File tree 3 files changed +8
-2
lines changed
spec/unit/classes/database
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 49
49
#
50
50
# @param postgresql_ssl_ca_cert_path
51
51
# Path to the Postgresql SSL CA.
52
+ # @param postgresql_locale
53
+ # The locale to use for the database. Defaults to `C.UTF-8`.
52
54
#
53
55
# @param read_database_username
54
56
# The name of the read database user to connect as. Defaults to `puppetdb-read`. This
85
87
$postgresql_ssl_key_path = $puppetdb::params::postgresql_ssl_key_path,
86
88
$postgresql_ssl_cert_path = $puppetdb::params::postgresql_ssl_cert_path,
87
89
$postgresql_ssl_ca_cert_path = $puppetdb::params::postgresql_ssl_ca_cert_path,
90
+ $postgresql_locale = $puppetdb::params::postgresql_locale,
88
91
$read_database_username = $puppetdb::params::read_database_username,
89
92
Variant[String[1], Sensitive[String[1]]] $read_database_password = $puppetdb::params::read_database_password,
90
93
$read_database_host = $puppetdb::params::read_database_host,
150
153
user => $database_username ,
151
154
password => $database_password ,
152
155
encoding => ' UTF8' ,
153
- locale => ' en_US.UTF-8 ' ,
156
+ locale => $postgresql_locale ,
154
157
grant => ' all' ,
155
158
port => $port ,
156
159
}
Original file line number Diff line number Diff line change 196
196
$postgresql_ssl_key_path = " ${postgresql_ssl_folder} /private_keys/${trusted['certname']}.pem"
197
197
$postgresql_ssl_ca_cert_path = " ${postgresql_ssl_folder} /certs/ca.pem"
198
198
199
+ # Configuration of the locales
200
+ $postgresql_locale = ' C.UTF-8'
201
+
199
202
# certificates used for Jetty configuration
200
203
$ssl_set_cert_paths = false
201
204
$ssl_cert_path = " ${ssl_dir} /public.pem"
Original file line number Diff line number Diff line change 63
63
grant : 'all' ,
64
64
port : params [ :database_port ] . to_i ,
65
65
encoding : 'UTF8' ,
66
- locale : 'en_US.UTF-8' ,
66
+ locale : params [ :postgresql_locale ] ,
67
67
)
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments