File tree Expand file tree Collapse file tree 4 files changed +16
-2
lines changed
spec/unit/classes/database Expand file tree Collapse file tree 4 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -919,6 +919,7 @@ The following parameters are available in the `puppetdb::database::postgresql` c
919
919
* [ ` listen_addresses ` ] ( #-puppetdb--database--postgresql--listen_addresses )
920
920
* [ ` puppetdb_server ` ] ( #-puppetdb--database--postgresql--puppetdb_server )
921
921
* [ ` database_name ` ] ( #-puppetdb--database--postgresql--database_name )
922
+ * [ ` database_locale ` ] ( #-puppetdb--database--postgresql--database_locale )
922
923
* [ ` database_username ` ] ( #-puppetdb--database--postgresql--database_username )
923
924
* [ ` database_password ` ] ( #-puppetdb--database--postgresql--database_password )
924
925
* [ ` database_port ` ] ( #-puppetdb--database--postgresql--database_port )
@@ -963,6 +964,14 @@ Sets the name of the database. Defaults to `puppetdb`.
963
964
964
965
Default value: ` $puppetdb::params::database_name `
965
966
967
+ ##### <a name =" -puppetdb--database--postgresql--database_locale " ></a >` database_locale `
968
+
969
+ Data type: ` Any `
970
+
971
+ Sets the locale of the database. Defaults to ` C.UTF-8 ` .
972
+
973
+ Default value: ` $puppetdb::params::database_locale `
974
+
966
975
##### <a name =" -puppetdb--database--postgresql--database_username " ></a >` database_username `
967
976
968
977
Data type: ` Any `
Original file line number Diff line number Diff line change 12
12
# @param database_name
13
13
# Sets the name of the database. Defaults to `puppetdb`.
14
14
#
15
+ # @param database_locale
16
+ # Sets the locale of the database. Defaults to `C.UTF-8`.
17
+ #
15
18
# @param database_username
16
19
# Creates a user for access the database. Defaults to `puppetdb`.
17
20
#
74
77
$listen_addresses = $puppetdb::params::database_host,
75
78
$puppetdb_server = $puppetdb::params::puppetdb_server,
76
79
$database_name = $puppetdb::params::database_name,
80
+ $database_locale = $puppetdb::params::database_locale,
77
81
$database_username = $puppetdb::params::database_username,
78
82
Variant[String[1], Sensitive[String[1]]] $database_password = $puppetdb::params::database_password,
79
83
$database_port = $puppetdb::params::database_port,
150
154
user => $database_username ,
151
155
password => $database_password ,
152
156
encoding => ' UTF8' ,
153
- locale => ' en_US.UTF-8 ' ,
157
+ locale => $database_locale ,
154
158
grant => ' all' ,
155
159
port => $port ,
156
160
}
Original file line number Diff line number Diff line change 35
35
$database_host = ' localhost'
36
36
$database_port = ' 5432'
37
37
$database_name = ' puppetdb'
38
+ $database_locale = ' C.UTF-8'
38
39
$database_username = ' puppetdb'
39
40
$database_password = ' puppetdb'
40
41
$manage_db_password = true
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 : 'C .UTF-8'
67
67
)
68
68
}
69
69
You can’t perform that action at this time.
0 commit comments