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
RevLine 
[159]1class estacion-de-trabajo {
[180]2
3## lo basico
[213]4    package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "ssh" ]: ensure => installed }
[180]5
[209]6## utile - gui
7    package { [ 'terminator' ]: ensure => installed }
8
[182]9## security
10    package { [ "libnss3-tools" ]: ensure => installed }
11
12## correo electronico
[180]13    package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed }
14
[182]15## grafico
16    package { [ "inkscape" ]: ensure => installed }
[180]17
[250]18    package { [ "nautilus-image-converter" ]: ensure => installed }
19
[251]20## editor de texto para html, php, etc...
21    package { [ "bluefish" ]: ensure => installed }
22
[182]23## IM
24    package { [ "amsn" ]: ensure => installed }
25
26## juegos
27    package { [ "tuxtype" ]: ensure => installed }
28
[197]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    }
[182]43
44
[180]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    }
[184]51
52    include estacion-de-trabajo::gnome-desktop::xp
53
[186]54    include estacion-de-trabajo::thunderbird::extensions
[180]55
[197]56    include estacion-de-trabajo::escritorio::fondos::cta
[184]57}
[180]58
[184]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
[202]67# Not used for now
68#    file { "/dist/svn-redcta/gnome-theme-xp/":
69#        ensure => "present",
70#    }
71
[184]72    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
73        ensure => "present",
[214]74        owner => "root", group => "root", mode => "755", checksum => mtime
[184]75    }
76
[202]77## TODO: exec this when there is a svn checkout
[184]78    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
79        refreshonly => true,
[202]80        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
[184]81    }
[194]82
[202]83
[194]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    }
[159]87}
88
[311]89
90## TODO: poner thunderbird como client de correo por defecto en la
91#        session del usuario asi no se abre evolution.
92
[186]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
[188]101    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
102       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
[186]103    }
104
[311]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#    }
[186]109}
[197]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
[209]119    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
120       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
121    }
[197]122
[209]123    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
124       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
125    }
[197]126}
Note: See TracBrowser for help on using the repository browser.