From f16ea862ba82f6561417629b823a1c89c835b5fe Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 18 Apr 2010 18:18:20 -0300 Subject: Adding locale class (3) --- manifests/subsystems/locale.pp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 manifests/subsystems/locale.pp (limited to 'manifests/subsystems/locale.pp') diff --git a/manifests/subsystems/locale.pp b/manifests/subsystems/locale.pp new file mode 100644 index 0000000..40afdbc --- /dev/null +++ b/manifests/subsystems/locale.pp @@ -0,0 +1,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, + notify => Exec['locale-gen'], + } + + exec { "locale-gen": + refreshonly => true, + } +} -- cgit v1.2.3