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

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

micro hack para que ejecuta el script

File size: 3.5 KB
Line 
1class estacion-de-trabajo {
2
3## lo basico
4    package { [ "ubuntu-desktop", "ubuntu-restricted-extras", "ssh" ]: 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## 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## creation of home directories with permission 700 (cannot be read by others)
28 package { [ "adduser" ]: ensure => installed }
29    line { changehomedirpermissiondefault:
30    file => "/etc/adduser.conf",
31    line => "DIR_MODE=0755",
32    ensure => absent,
33    require => Package["adduser"]
34    }
35    line { homedirpermissionothersout:
36    file => "/etc/adduser.conf",
37    line => "DIR_MODE=0700",
38    ensure => present,
39    require => Package["adduser"]
40    }
41
42
43#   question de creer le repertoire avant de faire le checkout
44    file { ["/dist", "/dist/svn-redcta"]:
45      ensure => directory,
46      owner => root,
47      group => root
48    }
49
50    include estacion-de-trabajo::gnome-desktop::xp
51
52    include estacion-de-trabajo::thunderbird::extensions
53
54    include estacion-de-trabajo::escritorio::fondos::cta
55}
56
57class estacion-de-trabajo::gnome-desktop::xp {
58
59    svn::checkout { gnome-theme-xp:
60       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
61       local_path => "/dist/svn-redcta",
62       local_name => "gnome-theme-xp",
63    }
64
65# Not used for now
66#    file { "/dist/svn-redcta/gnome-theme-xp/":
67#        ensure => "present",
68#    }
69
70    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
71        ensure => "present",
72        owner => "root", group => "root", mode => "755", checksum => mtime
73    }
74
75## TODO: exec this when there is a svn checkout
76    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
77        refreshonly => true,
78        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"]
79    }
80
81
82    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
83       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
84    }
85}
86
87class estacion-de-trabajo::thunderbird::extensions {
88
89    svn::checkout { thunderbird-extension:
90       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
91       local_path => "/dist/svn-redcta",
92       local_name => "thunderbid-extensions"
93    }
94
95    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
96       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
97    }
98
99    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
100       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
101    }
102}
103
104class estacion-de-trabajo::escritorio::fondos::cta {
105
106    svn::checkout { escritorio-fondos-cta:
107       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/escritorio-fondos-cta",
108       local_path => "/dist/svn-redcta",
109       local_name => "escritorio-fondos-cta"
110    }
111
112    file  { "/usr/share/backgrounds/wpiedras-hojitas.jpg":
113       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-hojitas.jpg"
114    }
115
116    file { "/usr/share/backgrounds/wpiedras-verdecito.jpg":
117       ensure => "/dist/svn-redcta/escritorio-fondos-cta/wpiedras-verdecito.jpg"
118    }
119}
Note: See TracBrowser for help on using the repository browser.