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
29
30
31
32
|
class nodo::subsystem::locales {
package { "locales":
ensure => installed,
}
file { "/etc/default/locale":
source => [ "puppet:///modules/site_nodo/etc/default/locale",
"puppet:///modules/nodo/etc/default/locale" ],
ensure => present,
owner => root,
group => root,
mode => 0644,
}
file { 'locale-gen':
path => $::operatingsystem ? {
'Ubuntu' => '/var/lib/locales/supported.d/local',
default => '/etc/locale.gen',
},
source => [ "puppet:///modules/site_nodo/etc/locale.gen",
"puppet:///modules/nodo/etc/locale.gen" ],
ensure => present,
owner => root,
group => root,
mode => 0644,
}
exec { "locale-gen":
refreshonly => true,
subscribe => File['locale-gen'],
}
}
|