]> git.immae.eu Git - perso/Immae/Projets/Puppet.git/commitdiff
Fix locales module
authorIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 8 Aug 2016 18:15:17 +0000 (20:15 +0200)
committerIsmaël Bouya <ismael.bouya@normalesup.org>
Mon, 8 Aug 2016 18:15:17 +0000 (20:15 +0200)
modules/locales/manifests/init.pp

index d9a71fbfb45699e75c3d2cc602b54af88894b849..6a5dc2a0e764751b043544e41577270b62b13c24 100644 (file)
@@ -1,20 +1,20 @@
 class locales {
   file_line { '/etc/locale.gen#fr_FR.UTF-8':
     path  => '/etc/locale.gen',
-    line  => 'fr_FR.UTF-8 UTF-8',
-    match => 'fr_FR.UTF-8 UTF-8$',
+    line  => 'fr_FR.UTF-8 UTF-8  ',
+    match => '#?fr_FR.UTF-8 UTF-8 +$',
   }
   file_line { '/etc/locale.gen#en_US.UTF-8':
     path  => '/etc/locale.gen',
-    line  => 'en_US.UTF-8 UTF-8',
-    match => 'en_US.UTF-8 UTF-8$',
+    line  => 'en_US.UTF-8 UTF-8  ',
+    match => '#?en_US.UTF-8 UTF-8 +$',
   }
   exec { '/usr/bin/locale-gen':
-    subscribe   => FileLine['/etc/locale.gen#fr_FR.UTF-8', '/etc/locale.gen#en_US.UTF-8'],
+    subscribe   => File_line['/etc/locale.gen#fr_FR.UTF-8', '/etc/locale.gen#en_US.UTF-8'],
     refreshonly => true,
   }
   exec { '/usr/bin/localectl set-locale LANG=fr_FR.UTF-8':
-    subscribe   => FileLine['/etc/locale.gen#fr_FR.UTF-8'],
+    subscribe   => File_line['/etc/locale.gen#fr_FR.UTF-8'],
     refreshonly => true,
   }
 }