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

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

sacar alguno paquete de estacion de trabajo para pasarlos a una clase especifica

File size: 3.4 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## IM
19    package { [ "amsn" ]: ensure => installed }
20
21## juegos
22    package { [ "tuxtype" ]: ensure => installed }
23
24## creation of home directories with permission 700 (cannot be read by others)
25 package { [ "adduser" ]: ensure => installed }
26    line { changehomedirpermissiondefault:
27    file => "/etc/adduser.conf",
28    line => "DIR_MODE=0755",
29    ensure => absent,
30    require => Package["adduser"]
31    }
32    line { homedirpermissionothersout:
33    file => "/etc/adduser.conf",
34    line => "DIR_MODE=0700",
35    ensure => present,
36    require => Package["adduser"]
37    }
38
39
40#   question de creer le repertoire avant de faire le checkout
41    file { ["/dist", "/dist/svn-redcta"]:
42      ensure => directory,
43      owner => root,
44      group => root
45    }
46
47    include estacion-de-trabajo::gnome-desktop::xp
48
49    include estacion-de-trabajo::thunderbird::extensions
50
51    include estacion-de-trabajo::escritorio::fondos::cta
52}
53
54class estacion-de-trabajo::gnome-desktop::xp {
55
56    svn::checkout { gnome-theme-xp:
57       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
58       local_path => "/dist/svn-redcta",
59       local_name => "gnome-theme-xp",
60    }
61
62# Not used for now
63#    file { "/dist/svn-redcta/gnome-theme-xp/":
64#        ensure => "present",
65#    }
66
67    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
68        ensure => "present",
69        owner => "root", group => "root", mode => "755", checksum => mtime
70    }
71
72## TODO: exec this when there is a svn checkout
73    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
74        refreshonly => true,
75        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
76    }
77
78
79    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
80       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
81    }
82}
83
84class estacion-de-trabajo::thunderbird::extensions {
85
86    svn::checkout { thunderbird-extension:
87       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
88       local_path => "/dist/svn-redcta",
89       local_name => "thunderbid-extensions"
90    }
91
92    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
93       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
94    }
95
96    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
97       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
98    }
99}
100
101class estacion-de-trabajo::escritorio::fondos::cta {
102
103    svn::checkout { escritorio-fondos-cta:
104       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
105       local_path => "/dist/svn-redcta",
106       local_name => "escritorio-fondos-cta"
107    }
108
109    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
110       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
111    }
112
113    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
114       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
115    }
116}
Note: See TracBrowser for help on using the repository browser.