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

Last change on this file since 194 was 194, checked in by sebas, 13 years ago

un enlace al script para poner los iconos sobre el escritorio

File size: 3.0 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 { [ 'gconf2', 'locales', '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
47
48
49#   question de creer le repertoire avant de faire le checkout
50    file { ["/dist", "/dist/svn-redcta"]:
51      ensure => directory,
52      owner => root,
53      group => root
54    }
55
56    include estacion-de-trabajo::gnome-desktop::xp
57
58    include estacion-de-trabajo::thunderbird::extensions
59
60#    define create::symblink ( $target, $linkname ) {
61#    exec { "createsymblink":
62#        command => "ln -s $target $linkname",
63#        path => "/bin",
64#        creates => "$linkname",
65#    }
66
67#}
68
69}
70
71class estacion-de-trabajo::gnome-desktop::xp {
72
73    svn::checkout { gnome-theme-xp:
74       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
75       local_path => "/dist/svn-redcta",
76       local_name => "gnome-theme-xp",
77    }
78
79    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
80        ensure => "present",
81        owner => "root", group => "root", mode => "755"
82    }
83
84    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
85        refreshonly => true,
86        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"],
87    }
88
89    file  { "/etc/X11/Xsession.d/65xdg-user-desktop-icons-update":
90       ensure => "/dist/svn-redcta/gnome-theme-xp/Xsession.d/65xdg-user-desktop-icons-update"
91    }
92}
93
94class estacion-de-trabajo::thunderbird::extensions {
95
96    svn::checkout { thunderbird-extension:
97       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
98       local_path => "/dist/svn-redcta",
99       local_name => "thunderbid-extensions"
100    }
101
102    file  { "/usr/share/thunderbird/isp/example-isp.rdf":
103       ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
104    }
105
106    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
107       ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
108    }
109}
Note: See TracBrowser for help on using the repository browser.