aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystem/locales.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/subsystem/locales.pp')
-rw-r--r--manifests/subsystem/locales.pp8
1 files changed, 6 insertions, 2 deletions
diff --git a/manifests/subsystem/locales.pp b/manifests/subsystem/locales.pp
index c3a1f76..ee428a5 100644
--- a/manifests/subsystem/locales.pp
+++ b/manifests/subsystem/locales.pp
@@ -12,7 +12,11 @@ class nodo::subsystem::locales {
mode => 0644,
}
- file { "/etc/locale.gen":
+ 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,
@@ -23,6 +27,6 @@ class nodo::subsystem::locales {
exec { "locale-gen":
refreshonly => true,
- subscribe => File["/etc/locale.gen"],
+ subscribe => File['locale-gen'],
}
}