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