aboutsummaryrefslogblamecommitdiff
path: root/modules/locales/manifests/init.pp
blob: 982b48e07fddf8f09da29a8e7a717f0072b674a6 (plain) (tree)
1
2
3
4
5
6
7
8
9
               

                                                  
   

                                                  

                               
                                                                                           


                                                          
                                                            


                        
class locales {
  locales::locale { '/etc/locale.gen#fr_FR.UTF-8':
    locale => 'fr_FR.UTF-8'
  }
  locales::locale { '/etc/locale.gen#en_US.UTF-8':
    locale => 'en_US.UTF-8'
  }
  exec { '/usr/bin/locale-gen':
    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   => File_line['/etc/locale.gen#fr_FR.UTF-8'],
    refreshonly => true,
  }
}