aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/common
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/common')
-rw-r--r--deployment/common/manifests/init.pp7
-rw-r--r--deployment/common/templates/i18n20
2 files changed, 27 insertions, 0 deletions
diff --git a/deployment/common/manifests/init.pp b/deployment/common/manifests/init.pp
index bb815bfe..c8465bc7 100644
--- a/deployment/common/manifests/init.pp
+++ b/deployment/common/manifests/init.pp
@@ -14,6 +14,13 @@ class common {
}
}
+ class i18n {
+ # push the locale everywhere, as it affect facter
+ file { "/etc/sysconfig/i18n":
+ content => template("common/i18n"),
+ }
+ }
+
class export_ssh_keys {
@@sshkey { ["$hostname","$fqdn","$ipaddress"]:
type => rsa,
diff --git a/deployment/common/templates/i18n b/deployment/common/templates/i18n
new file mode 100644
index 00000000..b85efe78
--- /dev/null
+++ b/deployment/common/templates/i18n
@@ -0,0 +1,20 @@
+<%-
+# should not be changed
+locale = 'en_US.UTF-8'
+
+-%>
+LC_TELEPHONE=<%= locale %>
+LC_CTYPE=<%= locale %>
+LANGUAGE=<%= locale %>:<%= locale.split('.')[0] %>:<%= locale.split('.')[0].split('_')[0] %>
+LC_MONETARY=<%= locale %>
+LC_ADDRESS=<%= locale %>
+LC_COLLATE=<%= locale %>
+LC_PAPER=<%= locale %>
+LC_NAME=<%= locale %>
+LC_NUMERIC=<%= locale %>
+SYSFONT=lat0-16
+LC_MEASUREMENT=<%= locale %>
+LC_TIME=<%= locale %>
+LANG=<%= locale %>
+LC_IDENTIFICATION=<%= locale %>
+LC_MESSAGES=<%= locale %>