Puppet Class: profile::locales::base

Defined in:
modules/profile/manifests/locales/base.pp

Summary

provisions the en_US.UTF-8 locale

Overview

SPDX-License-Identifier: Apache-2.0 this is done by debian-installer on wikiprod hosts, so this profile is mostly useful in Cloud VPS



5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/locales/base.pp', line 5

class profile::locales::base () {
  file_line { 'locale-en_US.UTF-8':
    ensure => present,
    path   => '/etc/locale.gen',
    line   => 'en_US.UTF-8 UTF-8',
    notify => Exec['base-locale-gen'],
  }

  exec { 'base-locale-gen':
    command     => '/usr/sbin/locale-gen --purge',
    refreshonly => true,
  }
}