1 | class estacion-de-trabajo { |
---|
2 | |
---|
3 | ## lo basico |
---|
4 | package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "cups" ]: ensure => installed } |
---|
5 | |
---|
6 | ## utile |
---|
7 | package { [ 'terminator', 'screen', 'less', 'vim' ]: 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 | ## cups (browse) - to see other printers |
---|
25 | line { cupsbrowseoff: |
---|
26 | file => "/etc/cups/cupsd.conf", |
---|
27 | line => 'Browsing Off', |
---|
28 | ensure => absent, |
---|
29 | require => Package["cups"] |
---|
30 | } |
---|
31 | line { cupsbrowseon: |
---|
32 | file => "/etc/cups/cupsd.conf", |
---|
33 | line => 'Browsing On', |
---|
34 | ensure => present, |
---|
35 | require => Package["cups"] |
---|
36 | } |
---|
37 | ## TODO: restart cups after a change of config |
---|
38 | # service { |
---|
39 | # "cups": |
---|
40 | # enable => true, |
---|
41 | # ensure => running, |
---|
42 | # # not sure if i'm correct with the last statement... about line. |
---|
43 | # subscribe => [ Package["cups"], line["cupsbrowseon"] ], |
---|
44 | # } |
---|
45 | |
---|
46 | ## creation of home directories with permission 700 (cannot be read by others) |
---|
47 | package { [ "adduser" ]: ensure => installed } |
---|
48 | line { changehomedirpermissiondefault: |
---|
49 | file => "/etc/adduser.conf", |
---|
50 | line => "DIR_MODE=0755", |
---|
51 | ensure => absent, |
---|
52 | require => Package["adduser"] |
---|
53 | } |
---|
54 | line { homedirpermissionothersout: |
---|
55 | file => "/etc/adduser.conf", |
---|
56 | line => "DIR_MODE=0700", |
---|
57 | ensure => present, |
---|
58 | require => Package["adduser"] |
---|
59 | } |
---|
60 | |
---|
61 | |
---|
62 | # question de creer le repertoire avant de faire le checkout |
---|
63 | file { ["/dist", "/dist/svn-redcta"]: |
---|
64 | ensure => directory, |
---|
65 | owner => root, |
---|
66 | group => root |
---|
67 | } |
---|
68 | |
---|
69 | include estacion-de-trabajo::gnome-desktop::xp |
---|
70 | |
---|
71 | include estacion-de-trabajo::thunderbird::extensions |
---|
72 | |
---|
73 | include estacion-de-trabajo::escritorio::fondos::cta |
---|
74 | |
---|
75 | # define create::symblink ( $target, $linkname ) { |
---|
76 | # exec { "createsymblink": |
---|
77 | # command => "ln -s $target $linkname", |
---|
78 | # path => "/bin", |
---|
79 | # creates => "$linkname", |
---|
80 | # } |
---|
81 | |
---|
82 | #} |
---|
83 | |
---|
84 | } |
---|
85 | |
---|
86 | class estacion-de-trabajo::gnome-desktop::xp { |
---|
87 | |
---|
88 | svn::checkout { gnome-theme-xp: |
---|
89 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp", |
---|
90 | local_path => "/dist/svn-redcta", |
---|
91 | local_name => "gnome-theme-xp", |
---|
92 | } |
---|
93 | |
---|
94 | # Not used for now |
---|
95 | # file { "/dist/svn-redcta/gnome-theme-xp/": |
---|
96 | # ensure => "present", |
---|
97 | # } |
---|
98 | |
---|
99 | file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
100 | ensure => "present", |
---|
101 | owner => "root", group => "root", mode => "755" |
---|
102 | } |
---|
103 | |
---|
104 | ## TODO: exec this when there is a svn checkout |
---|
105 | exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh": |
---|
106 | refreshonly => true, |
---|
107 | subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"] |
---|
108 | } |
---|
109 | |
---|
110 | |
---|
111 | file { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update": |
---|
112 | ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update" |
---|
113 | } |
---|
114 | } |
---|
115 | |
---|
116 | class estacion-de-trabajo::thunderbird::extensions { |
---|
117 | |
---|
118 | svn::checkout { thunderbird-extension: |
---|
119 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird", |
---|
120 | local_path => "/dist/svn-redcta", |
---|
121 | local_name => "thunderbid-extensions" |
---|
122 | } |
---|
123 | |
---|
124 | file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
125 | ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
126 | } |
---|
127 | |
---|
128 | file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com": |
---|
129 | ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist" |
---|
130 | } |
---|
131 | } |
---|
132 | |
---|
133 | class estacion-de-trabajo::escritorio::fondos::cta { |
---|
134 | |
---|
135 | svn::checkout { escritorio-fondos-cta: |
---|
136 | repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta", |
---|
137 | local_path => "/dist/svn-redcta", |
---|
138 | local_name => "escritorio-fondos-cta" |
---|
139 | } |
---|
140 | |
---|
141 | # file { "/usr/share/thunderbird/isp/example-isp.rdf": |
---|
142 | # ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf" |
---|
143 | # } |
---|
144 | |
---|
145 | # file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com": |
---|
146 | # ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist" |
---|
147 | # } |
---|
148 | } |
---|