aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/common
diff options
context:
space:
mode:
authorNicolas Lécureuil <neoclust@mageia.org>2017-04-13 22:25:57 +0200
committerNicolas Lécureuil <neoclust@mageia.org>2017-04-13 22:26:16 +0200
commit9eb76db68221955e2176b1283a2a5b7ee6719ece (patch)
tree99f24b6e9a9420392d286e358d30f4a467bd62c2 /deployment/common
parent3f78f9e42bd293f2d6e0354064294f809ea037b8 (diff)
downloadpuppet-9eb76db68221955e2176b1283a2a5b7ee6719ece.tar
puppet-9eb76db68221955e2176b1283a2a5b7ee6719ece.tar.gz
puppet-9eb76db68221955e2176b1283a2a5b7ee6719ece.tar.bz2
puppet-9eb76db68221955e2176b1283a2a5b7ee6719ece.tar.xz
puppet-9eb76db68221955e2176b1283a2a5b7ee6719ece.zip
Add systemd config file for languages
Diffstat (limited to 'deployment/common')
-rw-r--r--deployment/common/manifests/i18n.pp5
-rw-r--r--deployment/common/templates/locale.conf20
2 files changed, 24 insertions, 1 deletions
diff --git a/deployment/common/manifests/i18n.pp b/deployment/common/manifests/i18n.pp
index 9ef731ad..cf511862 100644
--- a/deployment/common/manifests/i18n.pp
+++ b/deployment/common/manifests/i18n.pp
@@ -5,4 +5,7 @@ class common::i18n {
file { '/etc/sysconfig/i18n':
content => template('common/i18n'),
}
-}
+
+ file { '/etc/locale.conf':
+ content => template('common/locale.conf'),
+ }
diff --git a/deployment/common/templates/locale.conf b/deployment/common/templates/locale.conf
new file mode 100644
index 00000000..e9fc2e06
--- /dev/null
+++ b/deployment/common/templates/locale.conf
@@ -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 %>
+LC_MEASUREMENT=<%= locale %>
+LC_TIME=<%= locale %>
+LANG=<%= locale %>
+LC_IDENTIFICATION=<%= locale %>
+LC_MESSAGES=<%= locale %>
+