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

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

client de stream + punto de montage de grupos

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