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 | |
---|
62 | class 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 | |
---|
70 | # Not used for now |
---|
71 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
72 | # ensure => "present", |
---|
73 | # } |
---|
74 | |
---|
75 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
76 | ensure => "present", |
---|
77 | owner => "root", group => "root", mode => "755", checksum => mtime, |
---|
78 | } |
---|
79 | |
---|
80 | ## TODO: exec this when there is a svn checkout |
---|
81 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
82 | refreshonly => true, |
---|
83 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
84 | } |
---|
85 | |
---|
86 | |
---|
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 | } |
---|
90 | } |
---|
91 | |
---|
92 | |
---|
93 | ## TODO: poner thunderbird como client de correo por defecto en la |
---|
94 | # session del usuario asi no se abre evolution. |
---|
95 | |
---|
96 | class 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 | |
---|
104 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
105 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
106 | } |
---|
107 | |
---|
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 | # } |
---|
112 | } |
---|
113 | |
---|
114 | class 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 | |
---|
122 | file { "/usr/share/backgrounds/wpiedras-hojitas.jpg": |
---|
123 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg" |
---|
124 | } |
---|
125 | |
---|
126 | file { "/usr/share/backgrounds/wpiedras-verdecito.jpg": |
---|
127 | ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg" |
---|
128 | } |
---|
129 | } |
---|