On 15 mrt, 04:17, kevin <lazy...@gmail.com> wrote:> From time to time, a new ubuntu install will have problems with
> locales, and language settings. I''d like to set up a recipe to
fix
> this, so that things like perl ( especially perl ) work. Is there a
> convention/method for this?
I don''t know about convention, but here''s what I do:
class timeandlocale {
package { "tzdata":
ensure => latest
}
package { "locales":
ensure => latest,
}
file { "/etc/locale.gen":
source =>
"puppet:///timeandlocale/locale.gen",
}
exec { "/usr/sbin/locale-gen":
subscribe => File["/etc/locale.gen"],
refreshonly => true,
}
file { "/etc/localtime":
source => "file:///usr/share/zoneinfo/Pacific/
Auckland",
require => Package["tzdata"],
}
}
where the ''locale.gen'' file is something that gets generated
somehow
that you can go through and mark the languages that you want
installed, e.g.
en_NZ ISO-8859-1
en_NZ.UTF-8 UTF-8
en_US ISO-8859-1
en_US.ISO-8859-15 ISO-8859-15
en_US.UTF-8 UTF-8
nl_NL ISO-8859-1
nl_NL.UTF-8 UTF-8
nl_NL@euro ISO-8859-15
etc.
Robin.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en
-~----------~----~----~----~------~----~------~--~---