File tree Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Expand file tree Collapse file tree 2 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 242
242
}
243
243
244
244
$debian_legacy_location = ' /etc/default/locale'
245
- if $facts [' os' ][' name ' ] == ' Debian' and $default_file != $debian_legacy_location {
245
+ if $facts [' os' ][' family ' ] == ' Debian' and $default_file != $debian_legacy_location {
246
246
file { $debian_legacy_location:
247
247
ensure => $ensure ,
248
248
target => $default_file ,
Original file line number Diff line number Diff line change 33
33
$default_file = ' /etc/default/locale'
34
34
}
35
35
$package = ' locales'
36
- case $facts [' os' ][' distro' ][' codename' ] {
37
- ' hardy' : {
38
- $update_locale_pkg = ' belocs-locales-bin'
39
- }
40
- default: {
41
- $update_locale_pkg = ' libc-bin'
42
- }
43
- }
44
- if versioncmp($facts [' os' ][' release' ][' full' ], ' 16.04' ) >= 0 {
45
- $config_file = ' /etc/locale.gen'
46
- } else {
47
- $config_file = ' /var/lib/locales/supported.d/local'
48
- }
36
+ $update_locale_pkg = ' libc-bin'
37
+ $config_file = ' /etc/locale.gen'
49
38
}
50
39
/(Debian|Raspbian|Kali)/: {
51
40
if versioncmp($facts [' os' ][' release' ][' major' ], ' 12' ) >= 0 {
You can’t perform that action at this time.
0 commit comments