aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-04-18 18:18:20 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-04-18 18:18:20 -0300
commitf16ea862ba82f6561417629b823a1c89c835b5fe (patch)
tree814007c11bc2e48053516fafb596448d48c340b1
parentd94cc18973292743c90d627b91a843fa248b925b (diff)
downloadpuppet-nodo-f16ea862ba82f6561417629b823a1c89c835b5fe.tar.gz
puppet-nodo-f16ea862ba82f6561417629b823a1c89c835b5fe.tar.bz2
Adding locale class (3)
-rw-r--r--manifests/subsystems/locale.pp28
1 files changed, 28 insertions, 0 deletions
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,
+ }
+}