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

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

enlace simbolicos pero no anda todavia

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