Puppet Class: system::sysconfig::i18n

Defined in:
manifests/sysconfig/i18n.pp

Overview

Parameters:

  • config (Any) (defaults to: undef)
  • schedule (Any) (defaults to: undef)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/sysconfig/i18n.pp', line 1

class system::sysconfig::i18n (
  $config   = undef,
  $schedule = undef,
) {
  if $config {
    $i18n = $config
  }
  else {
    $i18n = hiera_hash('system::sysconfig::i18n', undef)
  }
  if $i18n {
    system::sysconfig::header { 'i18n':
      schedule => $schedule,
    }
    system::sysconfig::entry { 'i18n-lang':
      file     => 'i18n',
      var      => 'LANG',
      val      => $i18n['lang'],
      schedule => $schedule,
    }
    system::sysconfig::entry { 'i18n-sysfont':
      file     => 'i18n',
      var      => 'SYSFONT',
      val      => $i18n['sysfont'],
      schedule => $schedule,
    }
  }
}