1 | class estacion-de-trabajo { |
---|
2 | |
---|
3 | ## lo basico |
---|
4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "ssh" ]: ensure => installed } |
---|
5 | |
---|
6 | ## oficina - editar pdf |
---|
7 | package { [ 'openoffice.org-pdfimport' ]: ensure => installed } |
---|
8 | |
---|
9 | ## utile - gui |
---|
10 | package { [ 'terminator' ]: ensure => installed } |
---|
11 | |
---|
12 | ## security |
---|
13 | package { [ "libnss3-tools" ]: ensure => installed } |
---|
14 | |
---|
15 | ## correo electronico |
---|
16 | package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed } |
---|
17 | |
---|
18 | ## grafico |
---|
19 | package { [ "inkscape" ]: ensure => installed } |
---|
20 | |
---|
21 | package { [ "nautilus-image-converter" ]: ensure => installed } |
---|
22 | |
---|
23 | ## editor de texto para html, php, etc... |
---|
24 | package { [ "bluefish" ]: ensure => installed } |
---|
25 | |
---|
26 | ## IM |
---|
27 | package { [ "amsn" ]: ensure => installed } |
---|
28 | |
---|
29 | ## juegos |
---|
30 | package { [ "tuxtype" ]: ensure => installed } |
---|
31 | |
---|
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 | } |
---|
46 | |
---|
47 | |
---|
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 | } |
---|
54 | |
---|
55 | include estacion-de-trabajo::gnome-desktop::xp |
---|
56 | |
---|
57 | include estacion-de-trabajo::thunderbird::extensions |
---|
58 | |
---|
59 | include estacion-de-trabajo::escritorio::fondos::cta |
---|
60 | |
---|
61 | include estacion-de-trabajo::escritorio::autostart |
---|
62 | |
---|
63 | } |
---|
64 | |
---|
65 | class 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 | |
---|
73 | # Not used for now |
---|
74 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
75 | # ensure => "present", |
---|
76 | # } |
---|
77 | |
---|
78 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
79 | ensure => "present", |
---|
80 | owner => "root", group => "root", mode => "755", checksum => mtime, |
---|
81 | # require => svn::checkout["gnome-theme-xp"], |
---|
82 | } |
---|
83 | |
---|
84 | ## TODO: exec this when there is a svn checkout |
---|
85 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
86 | refreshonly => true, |
---|
87 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
88 | } |
---|
89 | |
---|
90 | |
---|
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 | } |
---|
94 | } |
---|
95 | |
---|
96 | |
---|
97 | ## TODO: poner thunderbird como client de correo por defecto en la |
---|
98 | # session del usuario asi no se abre evolution. |
---|
99 | |
---|
100 | class 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 | |
---|
108 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
109 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
110 | } |
---|
111 | |
---|
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 | # } |
---|
116 | } |
---|
117 | |
---|
118 | class 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 | |
---|
126 | file { "/usr/share/backgrounds/wpiedras-hojitas.jpg": |
---|
127 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg" |
---|
128 | } |
---|
129 | |
---|
130 | file { "/usr/share/backgrounds/wpiedras-verdecito.jpg": |
---|
131 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg" |
---|
132 | } |
---|
133 | } |
---|
134 | |
---|
135 | class 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 | } |
---|