aboutsummaryrefslogtreecommitdiff
path: root/manifests/subsystems/locales.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-04-18 19:20:41 -0300
committerSilvio Rhatto <rhatto@riseup.net>2010-04-18 19:20:41 -0300
commit362e00818561d07f93dfd0a948f332005208eab9 (patch)
tree0293c6d1b3c7a54558aefae221b1cec3feb590e9 /manifests/subsystems/locales.pp
parent96e0488bf894b1b8cf5e33d743a798de5ffcb313 (diff)
downloadpuppet-nodo-362e00818561d07f93dfd0a948f332005208eab9.tar.gz
puppet-nodo-362e00818561d07f93dfd0a948f332005208eab9.tar.bz2
Renaming class locales
Diffstat (limited to 'manifests/subsystems/locales.pp')
-rw-r--r--manifests/subsystems/locales.pp28
1 files changed, 28 insertions, 0 deletions
diff --git a/manifests/subsystems/locales.pp b/manifests/subsystems/locales.pp
new file mode 100644
index 0000000..3bed96f
--- /dev/null
+++ b/manifests/subsystems/locales.pp
@@ -0,0 +1,28 @@
+class locales {
+ 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,
+ }
+
+ exec { "locale-gen":
+ refreshonly => true,
+ subscribe => File["/etc/locale.gen"],
+ }
+}