这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@
# Metadata about the locale information.
# Default: undef
#
# [*lc_all*]
# Primary Language
# Default: undef
#
# [*autoupgrade*]
# Upgrade package automatically, if there is a newer version.
# Default: false
Expand Down Expand Up @@ -128,6 +132,7 @@
$lc_telephone = $locales::params::lc_telephone,
$lc_measurement = $locales::params::lc_measurement,
$lc_identification = $locales::params::lc_identification,
$lc_all = $locales::params::lc_all,
$autoupgrade = false,
$package = $locales::params::package,
$config_file = $locales::params::config_file,
Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
$lc_telephone = undef
$lc_measurement = undef
$lc_identification = undef
$lc_all = undef
$package = 'locales'
$default_file = '/etc/default/locale'
$locale_gen_cmd = '/usr/sbin/locale-gen'
Expand Down
3 changes: 3 additions & 0 deletions templates/locale.erb
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ LC_MEASUREMENT="<%= @lc_measurement %>"
<% if @lc_identification -%>
LC_IDENTIFICATION="<%= @lc_identification %>"
<% end -%>
<% if @lc_all -%>
LC_ALL="<%= @lc_all %>"
<% end -%>