source: trunk/puppet/manifests/classes/estacion-de-trabajo.pp @ 205

Last change on this file since 205 was 205, checked in by sebas, 15 years ago

paquete para conectar a un servidor de archivo samba

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