source: trunk/puppet/manifests/classes/estacion-de-trabajo.pp @ 432

Last change on this file since 432 was 432, checked in by sebas, 13 years ago

prueba para tener andando

File size: 3.9 KB
Line 
1class estacion-de-trabajo {
2
3## lo basico
4    package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "ssh" ]: ensure => installed }
5
6## oficina - editar pdf
7    package { [ 'openoffice.org-pdfimport' ]: ensure => installed }
8
9## utile - gui
10    package { [ 'terminator' ]: ensure => installed }
11
12## security
13    package { [ "libnss3-tools" ]: ensure => installed }
14
15## correo electronico
16    package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed }
17
18## grafico
19    package { [ "inkscape" ]: ensure => installed }
20
21    package { [ "nautilus-image-converter" ]: ensure => installed }
22
23## editor de texto para html, php, etc...
24    package { [ "bluefish" ]: ensure => installed }
25
26## IM
27    package { [ "amsn" ]: ensure => installed }
28
29## juegos
30    package { [ "tuxtype" ]: ensure => installed }
31
32## creation of home directories with permission 700 (cannot be read by others)
33 package { [ "adduser" ]: ensure => installed }
34    line { changehomedirpermissiondefault:
35    file => "/etc/adduser.conf",
36    line => "DIR_MODE=0755",
37    ensure => absent,
38    require => Package["adduser"]
39    }
40    line { homedirpermissionothersout:
41    file => "/etc/adduser.conf",
42    line => "DIR_MODE=0700",
43    ensure => present,
44    require => Package["adduser"]
45    }
46
47
48#   question de creer le repertoire avant de faire le checkout
49    file { ["/dist", "/dist/svn-redcta"]:
50      ensure => directory,
51      owner => root,
52      group => root
53    }
54
55    include estacion-de-trabajo::gnome-desktop::xp
56
57    include estacion-de-trabajo::thunderbird::extensions
58
59    include estacion-de-trabajo::escritorio::fondos::cta
60}
61
62class estacion-de-trabajo::gnome-desktop::xp {
63
64    svn::checkout { gnome-theme-xp:
65       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
66       local_path => "/dist/svn-redcta",
67       local_name => "gnome-theme-xp",
68    }
69
70# Not used for now
71#    file { "/dist/svn-redcta/gnome-theme-xp/":
72#        ensure => "present",
73#    }
74
75    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
76        ensure => "present",
77        owner => "root", group => "root", mode => "755", checksum => mtime,
78        require => [ svn::checkout["gnome-theme-xp"]],
79    }
80
81## TODO: exec this when there is a svn checkout
82    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
83        refreshonly => true,
84        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
85    }
86
87
88    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
89       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
90    }
91}
92
93
94## TODO: poner thunderbird como client de correo por defecto en la
95#        session del usuario asi no se abre evolution.
96
97class estacion-de-trabajo::thunderbird::extensions {
98
99    svn::checkout { thunderbird-extension:
100       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
101       local_path => "/dist/svn-redcta",
102       local_name => "thunderbid-extensions"
103    }
104
105    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
106       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
107    }
108
109# TODO: hacer lo andar bien...
110#    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
111#       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
112#    }
113}
114
115class estacion-de-trabajo::escritorio::fondos::cta {
116
117    svn::checkout { escritorio-fondos-cta:
118       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
119       local_path => "/dist/svn-redcta",
120       local_name => "escritorio-fondos-cta"
121    }
122
123    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
124       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
125    }
126
127    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
128       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
129    }
130}
Note: See TracBrowser for help on using the repository browser.