diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 20:07:40 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2016-08-08 20:07:40 +0200 |
commit | f756de713e30c9139ad1404f057361154dea4e34 (patch) | |
tree | db7cfbe60a08ce7f4de937dfa3181918a3af1578 /modules/locales | |
parent | 2d02240aaac30d65e47de15198853fc95e32411b (diff) | |
download | Puppet-f756de713e30c9139ad1404f057361154dea4e34.tar.gz Puppet-f756de713e30c9139ad1404f057361154dea4e34.tar.zst Puppet-f756de713e30c9139ad1404f057361154dea4e34.zip |
Add locales module
Diffstat (limited to 'modules/locales')
-rw-r--r-- | modules/locales/manifests/init.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/modules/locales/manifests/init.pp b/modules/locales/manifests/init.pp new file mode 100644 index 0000000..d9a71fb --- /dev/null +++ b/modules/locales/manifests/init.pp | |||
@@ -0,0 +1,20 @@ | |||
1 | class locales { | ||
2 | file_line { '/etc/locale.gen#fr_FR.UTF-8': | ||
3 | path => '/etc/locale.gen', | ||
4 | line => 'fr_FR.UTF-8 UTF-8', | ||
5 | match => 'fr_FR.UTF-8 UTF-8$', | ||
6 | } | ||
7 | file_line { '/etc/locale.gen#en_US.UTF-8': | ||
8 | path => '/etc/locale.gen', | ||
9 | line => 'en_US.UTF-8 UTF-8', | ||
10 | match => 'en_US.UTF-8 UTF-8$', | ||
11 | } | ||
12 | exec { '/usr/bin/locale-gen': | ||
13 | subscribe => FileLine['/etc/locale.gen#fr_FR.UTF-8', '/etc/locale.gen#en_US.UTF-8'], | ||
14 | refreshonly => true, | ||
15 | } | ||
16 | exec { '/usr/bin/localectl set-locale LANG=fr_FR.UTF-8': | ||
17 | subscribe => FileLine['/etc/locale.gen#fr_FR.UTF-8'], | ||
18 | refreshonly => true, | ||
19 | } | ||
20 | } | ||