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

Last change on this file since 598 was 598, checked in by josx@…, 14 years ago

Deshabilitando por defecto los servicios de usuario: escritorio remoto, actualizaciones, bluetooth, evolution, chequeo hardware, ayuda visual, bateria

File size: 4.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
[365]6## oficina - editar pdf
7    package { [ 'openoffice.org-pdfimport' ]: ensure => installed }
8
[209]9## utile - gui
10    package { [ 'terminator' ]: ensure => installed }
11
[182]12## security
13    package { [ "libnss3-tools" ]: ensure => installed }
14
15## correo electronico
[180]16    package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed }
17
[182]18## grafico
19    package { [ "inkscape" ]: ensure => installed }
[180]20
[250]21    package { [ "nautilus-image-converter" ]: ensure => installed }
22
[251]23## editor de texto para html, php, etc...
24    package { [ "bluefish" ]: ensure => installed }
25
[182]26## IM
27    package { [ "amsn" ]: ensure => installed }
28
29## juegos
30    package { [ "tuxtype" ]: ensure => installed }
31
[197]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,
[433]38    require => Package["adduser"],
[197]39    }
40    line { homedirpermissionothersout:
41    file => "/etc/adduser.conf",
42    line => "DIR_MODE=0700",
43    ensure => present,
[433]44    require => Package["adduser"],
[197]45    }
[182]46
47
[180]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    }
[184]54
55    include estacion-de-trabajo::gnome-desktop::xp
56
[186]57    include estacion-de-trabajo::thunderbird::extensions
[180]58
[197]59    include estacion-de-trabajo::escritorio::fondos::cta
[598]60
61    include estacion-de-trabajo::escritorio::autostart
62
[184]63}
[180]64
[184]65class estacion-de-trabajo::gnome-desktop::xp {
66
67    svn::checkout { gnome-theme-xp:
68       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
69       local_path => "/dist/svn-redcta",
70       local_name => "gnome-theme-xp",
71    }
72
[202]73# Not used for now
74#    file { "/dist/svn-redcta/gnome-theme-xp/":
75#        ensure => "present",
76#    }
77
[184]78    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
79        ensure => "present",
[396]80        owner => "root", group => "root", mode => "755", checksum => mtime,
[434]81#        require => svn::checkout["gnome-theme-xp"],
[184]82    }
83
[202]84## TODO: exec this when there is a svn checkout
[184]85    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
86        refreshonly => true,
[202]87        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
[184]88    }
[194]89
[202]90
[194]91    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
92       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
93    }
[159]94}
95
[311]96
97## TODO: poner thunderbird como client de correo por defecto en la
98#        session del usuario asi no se abre evolution.
99
[186]100class estacion-de-trabajo::thunderbird::extensions {
101
102    svn::checkout { thunderbird-extension:
103       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
104       local_path => "/dist/svn-redcta",
105       local_name => "thunderbid-extensions"
106    }
107
[188]108    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
109       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
[186]110    }
111
[311]112# TODO: hacer lo andar bien...
113#    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
114#       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
115#    }
[186]116}
[197]117
118class estacion-de-trabajo::escritorio::fondos::cta {
119
120    svn::checkout { escritorio-fondos-cta:
121       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
122       local_path => "/dist/svn-redcta",
123       local_name => "escritorio-fondos-cta"
124    }
125
[209]126    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
127       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
128    }
[197]129
[209]130    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
131       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
132    }
[197]133}
[598]134
135class estacion-de-trabajo::escritorio::autostart {
136       
137        define deshabilita_servicios($archivos) {
138                 deshabilita_servicio { $archivos: archivo => $name } 
139        }
140
141        define deshabilita_servicio($archivo) {
142                file { "${archivo}/$name"  : ensure => present, }
143
144                line  { "verdadero$name" :
145                       file => "${archivo}/$name",
146                       line => "X-GNOME-Autostart-enabled=true",
147                       ensure => absent,
148                }       
149
150                line  { "falso$name":
151                        file => "${archivo}/$name" ,
152                        line => "X-GNOME-Autostart-enabled=false",
153                        ensure => present,
154                }       
155
156        }
157
158        deshabilita_servicios { "/etc/xdg/autostart":
159                archivos => [ "vino-server.desktop", "update-notifier.desktop", "bluetooth-applet.desktop", "evolution-alarm-notify.desktop", "jockey-gtk.desktop", "gnome-at-session.desktop", "gnome-power-manager.desktop" ],
160        }
161
162}
Note: See TracBrowser for help on using the repository browser.