diff --git a/manifests/init.pp b/manifests/init.pp index e7f685e..0f58408 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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 @@ -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, diff --git a/manifests/params.pp b/manifests/params.pp index 903cdd1..552a2f7 100644 --- a/manifests/params.pp +++ b/manifests/params.pp @@ -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' diff --git a/templates/locale.erb b/templates/locale.erb index 2400e68..7af4213 100644 --- a/templates/locale.erb +++ b/templates/locale.erb @@ -41,3 +41,6 @@ LC_MEASUREMENT="<%= @lc_measurement %>" <% if @lc_identification -%> LC_IDENTIFICATION="<%= @lc_identification %>" <% end -%> +<% if @lc_all -%> +LC_ALL="<%= @lc_all %>" +<% end -%>