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

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

enlace a documentacion etherboot + paquete para importar pdf en OO

File size: 3.8 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,
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    }
[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",
[214]77        owner => "root", group => "root", mode => "755", checksum => mtime
[184]78    }
79
[202]80## TODO: exec this when there is a svn checkout
[184]81    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
82        refreshonly => true,
[202]83        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
[184]84    }
[194]85
[202]86
[194]87    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
88       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
89    }
[159]90}
91
[311]92
93## TODO: poner thunderbird como client de correo por defecto en la
94#        session del usuario asi no se abre evolution.
95
[186]96class estacion-de-trabajo::thunderbird::extensions {
97
98    svn::checkout { thunderbird-extension:
99       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
100       local_path => "/dist/svn-redcta",
101       local_name => "thunderbid-extensions"
102    }
103
[188]104    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
105       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
[186]106    }
107
[311]108# TODO: hacer lo andar bien...
109#    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
110#       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
111#    }
[186]112}
[197]113
114class estacion-de-trabajo::escritorio::fondos::cta {
115
116    svn::checkout { escritorio-fondos-cta:
117       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
118       local_path => "/dist/svn-redcta",
119       local_name => "escritorio-fondos-cta"
120    }
121
[209]122    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
123       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
124    }
[197]125
[209]126    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
127       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
128    }
[197]129}
Note: See TracBrowser for help on using the repository browser.