1 | class estacion-de-trabajo { |
---|
2 | |
---|
3 | ## lo basico |
---|
4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras" ]: ensure => installed } |
---|
5 | |
---|
6 | ## utile - cli |
---|
7 | package { [ 'screen', 'less', 'vim', 'pv' ]: ensure => installed } |
---|
8 | |
---|
9 | ## utile - gui |
---|
10 | package { [ 'terminator' ]: ensure => installed } |
---|
11 | |
---|
12 | ## connexion a samba |
---|
13 | #TODO |
---|
14 | # package { [ "smbfs" ]: ensure => installed } |
---|
15 | |
---|
16 | ## security |
---|
17 | package { [ "libnss3-tools" ]: ensure => installed } |
---|
18 | |
---|
19 | ## correo electronico |
---|
20 | package { [ "thunderbird", "thunderbird-gnome-support" ]: ensure => installed } |
---|
21 | |
---|
22 | ## grafico |
---|
23 | package { [ "inkscape" ]: ensure => installed } |
---|
24 | |
---|
25 | ## IM |
---|
26 | package { [ "amsn" ]: ensure => installed } |
---|
27 | |
---|
28 | ## juegos |
---|
29 | package { [ "tuxtype" ]: ensure => installed } |
---|
30 | |
---|
31 | ## creation of home directories with permission 700 (cannot be read by others) |
---|
32 | package { [ "adduser" ]: ensure => installed } |
---|
33 | line { changehomedirpermissiondefault: |
---|
34 | file => "/etc/adduser.conf", |
---|
35 | line => "DIR_MODE=0755", |
---|
36 | ensure => absent, |
---|
37 | require => Package["adduser"] |
---|
38 | } |
---|
39 | line { homedirpermissionothersout: |
---|
40 | file => "/etc/adduser.conf", |
---|
41 | line => "DIR_MODE=0700", |
---|
42 | ensure => present, |
---|
43 | require => Package["adduser"] |
---|
44 | } |
---|
45 | |
---|
46 | |
---|
47 | # question de creer le repertoire avant de faire le checkout |
---|
48 | file { ["/dist", "/dist/svn-redcta"]: |
---|
49 | ensure => directory, |
---|
50 | owner => root, |
---|
51 | group => root |
---|
52 | } |
---|
53 | |
---|
54 | include estacion-de-trabajo::gnome-desktop::xp |
---|
55 | |
---|
56 | include estacion-de-trabajo::thunderbird::extensions |
---|
57 | |
---|
58 | include estacion-de-trabajo::escritorio::fondos::cta |
---|
59 | |
---|
60 | # define create::symblink ( $target, $linkname ) { |
---|
61 | # exec { "createsymblink": |
---|
62 | # command => "ln -s $target $linkname", |
---|
63 | # path => "/bin", |
---|
64 | # creates => "$linkname", |
---|
65 | # } |
---|
66 | |
---|
67 | #} |
---|
68 | |
---|
69 | } |
---|
70 | |
---|
71 | class estacion-de-trabajo::gnome-desktop::xp { |
---|
72 | |
---|
73 | svn::checkout { gnome-theme-xp: |
---|
74 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
75 | local_path => "/dist/svn-redcta", |
---|
76 | local_name => "gnome-theme-xp", |
---|
77 | } |
---|
78 | |
---|
79 | # Not used for now |
---|
80 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
81 | # ensure => "present", |
---|
82 | # } |
---|
83 | |
---|
84 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
85 | ensure => "present", |
---|
86 | owner => "root", group => "root", mode => "755" |
---|
87 | } |
---|
88 | |
---|
89 | ## TODO: exec this when there is a svn checkout |
---|
90 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
91 | refreshonly => true, |
---|
92 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
93 | } |
---|
94 | |
---|
95 | |
---|
96 | file { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update": |
---|
97 | ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update" |
---|
98 | } |
---|
99 | } |
---|
100 | |
---|
101 | class estacion-de-trabajo::thunderbird::extensions { |
---|
102 | |
---|
103 | svn::checkout { thunderbird-extension: |
---|
104 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
105 | local_path => "/dist/svn-redcta", |
---|
106 | local_name => "thunderbid-extensions" |
---|
107 | } |
---|
108 | |
---|
109 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
110 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
111 | } |
---|
112 | |
---|
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 | } |
---|