aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/common
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2012-02-09 12:20:48 +0000
committerMichael Scherer <misc@mageia.org>2012-02-09 12:20:48 +0000
commitec08bc62f4f1728d16688f80ce72c144e19466c7 (patch)
tree456609460160bb9c656f36814c7c32a84fe97cf4 /deployment/common
parent243c4df254610fee26105ac6e16950f132c2d30d (diff)
downloadpuppet-ec08bc62f4f1728d16688f80ce72c144e19466c7.tar
puppet-ec08bc62f4f1728d16688f80ce72c144e19466c7.tar.gz
puppet-ec08bc62f4f1728d16688f80ce72c144e19466c7.tar.bz2
puppet-ec08bc62f4f1728d16688f80ce72c144e19466c7.tar.xz
puppet-ec08bc62f4f1728d16688f80ce72c144e19466c7.zip
add class to set locale system wide
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 %>