aboutsummaryrefslogtreecommitdiff
path: root/modules/locales/manifests/locale.pp
diff options
context:
space:
mode:
authorIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-09 15:38:57 +0200
committerIsmaël Bouya <ismael.bouya@normalesup.org>2016-08-09 15:38:57 +0200
commitfa935f639002f0333cadb34efaa4129842bca084 (patch)
tree994c27d051593e7e0829dcc67b7a690bed3cd80e /modules/locales/manifests/locale.pp
parenta880172b96e94f4f1c01d51d78305d712d1726b3 (diff)
downloadPuppet-fa935f639002f0333cadb34efaa4129842bca084.tar.gz
Puppet-fa935f639002f0333cadb34efaa4129842bca084.tar.zst
Puppet-fa935f639002f0333cadb34efaa4129842bca084.zip
Factorize locales functions
Diffstat (limited to 'modules/locales/manifests/locale.pp')
-rw-r--r--modules/locales/manifests/locale.pp7
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/locales/manifests/locale.pp b/modules/locales/manifests/locale.pp
new file mode 100644
index 0000000..1eb14be
--- /dev/null
+++ b/modules/locales/manifests/locale.pp
@@ -0,0 +1,7 @@
1define locales::locale ($locale, $charmap = 'UTF-8') {
2 file_line { "/etc/locale.gen#$locale":
3 path => '/etc/locale.gen',
4 line => "$locale $charmap ",
5 match => "#?$locale $charmap +$",
6 }
7}