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

Last change on this file since 311 was 311, checked in by sebas, 15 years ago

comentarios - TODO tb como client por defecto + saco el plugin de contactos por ahora... no anda todavia

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