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

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

no anda el cambio... :(

File size: 3.9 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
[184]60}
[180]61
[184]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
[202]70# Not used for now
71#    file { "/dist/svn-redcta/gnome-theme-xp/":
72#        ensure => "present",
73#    }
74
[184]75    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
76        ensure => "present",
[396]77        owner => "root", group => "root", mode => "755", checksum => mtime,
[434]78#        require => svn::checkout["gnome-theme-xp"],
[184]79    }
80
[202]81## TODO: exec this when there is a svn checkout
[184]82    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
83        refreshonly => true,
[202]84        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
[184]85    }
[194]86
[202]87
[194]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    }
[159]91}
92
[311]93
94## TODO: poner thunderbird como client de correo por defecto en la
95#        session del usuario asi no se abre evolution.
96
[186]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
[188]105    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
106       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
[186]107    }
108
[311]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#    }
[186]113}
[197]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
[209]123    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
124       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
125    }
[197]126
[209]127    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
128       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
129    }
[197]130}
Note: See TracBrowser for help on using the repository browser.