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

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

ahora una class para gnome-desktop teme xp

File size: 2.6 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    svn::checkout { thunderbird-extension:
59       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
60       local_path => "/dist/svn-redcta",
61       local_name => "thunderbid-extension"
62    }
63
64    create::symblink { link-thunderbird-extension:
65       target => "/dist/svn-redcta/thunderbid-extension/agregados/sources/isp/example-isp.rdf",
66       linkname => "/usr/share/thunderbird/isp/example-isp.rdf",
67    }
68
69
70#    define create::symblink ( $target, $linkname ) {
71#    exec { "createsymblink":
72#        command => "ln -s $target $linkname",
73#        path => "/bin",
74#        creates => "$linkname",
75#    }
76
77#}
78
79}
80
81class estacion-de-trabajo::gnome-desktop::xp {
82
83    svn::checkout { gnome-theme-xp:
84       repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/gnome-theme-xp",
85       local_path => "/dist/svn-redcta",
86       local_name => "gnome-theme-xp",
87    }
88
89    file { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
90        ensure => "present",
91        owner => "root", group => "root", mode => "755"
92    }
93
94    exec { "/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh":
95        refreshonly => true,
96        subscribe => File["/dist/svn-redcta/gnome-theme-xp/change-default-to-xp.sh"],
97    }
98}
99
Note: See TracBrowser for help on using the repository browser.