]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/blame - modules/locales/manifests/init.pp
Fix locales module
[perso/Immae/Projets/Puppet.git] / modules / locales / manifests / init.pp
CommitLineData
f756de71
IB
1class locales {
2 file_line { '/etc/locale.gen#fr_FR.UTF-8':
3 path => '/etc/locale.gen',
075ea0ea
IB
4 line => 'fr_FR.UTF-8 UTF-8 ',
5 match => '#?fr_FR.UTF-8 UTF-8 +$',
f756de71
IB
6 }
7 file_line { '/etc/locale.gen#en_US.UTF-8':
8 path => '/etc/locale.gen',
075ea0ea
IB
9 line => 'en_US.UTF-8 UTF-8 ',
10 match => '#?en_US.UTF-8 UTF-8 +$',
f756de71
IB
11 }
12 exec { '/usr/bin/locale-gen':
075ea0ea 13 subscribe => File_line['/etc/locale.gen#fr_FR.UTF-8', '/etc/locale.gen#en_US.UTF-8'],
f756de71
IB
14 refreshonly => true,
15 }
16 exec { '/usr/bin/localectl set-locale LANG=fr_FR.UTF-8':
075ea0ea 17 subscribe => File_line['/etc/locale.gen#fr_FR.UTF-8'],
f756de71
IB
18 refreshonly => true,
19 }
20}