aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/locale.pp
blob: 60ba4a3a95b8b4a71e4b1f2840203835071c8589 (plain)
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
class locale {
  package { "locales":
    ensure => installed,
  }

  file { "/etc/default/locale":
    source  => [ "puppet://$server/files/etc/default/locale",
                 "puppet://$server/modules/nodo/etc/default/locale" ],
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0644,
  }

  file { "/etc/locale.gen":
    source  => [ "puppet://$server/files/etc/locale.gen",
                 "puppet://$server/modules/nodo/etc/locale.gen" ],
    ensure => present,
    owner  => root,
    group  => root,
    mode   => 0644,
  }

  exec { "locale-gen":
    refreshonly => true,
    subscribe   =>    File["/etc/locale.gen"], 
  }
}