source: trunk/puppet/modules/puppet-escritorio/manifests/classes/tbconf.pp @ 750

Last change on this file since 750 was 736, checked in by josx@…, 14 years ago

Mejorando el codigo para agregar una preferencia a thunderbird

File size: 2.0 KB
Line 
1# copyright albertorosenberg @ cta.org.ar
2# copyright sebas @ cta.org.ar
3# Licence: GPL
4#
5
6class escritorio::tb {
7
8    package { [
9        "thunderbird",
10        "thunderbird-locale-es-ar",
11        "thunderbird-gnome-support"
12        ]: ensure => installed
13    }
14}
15
16class escritorio::tb2conf {
17
18    include escritorio::tb
19
20    file { "/usr/share/thunderbird/defaults/pref/mailnews.js":
21        owner   => root,
22        group   => root,
23        mode    => 644,
24        source  => "puppet:///escritorio/tb2conf/mailnews.js",
25        require => Package["thunderbird"]
26    }
27}
28
29class escritorio::tb3conf {
30    include escritorio::tb
31
32    define add_pref($pref_present, $pref_absent) {
33        file { "/etc/thunderbird/pref/thunderbird.js": ensure => present, checksum => mtime }
34        line { "off$pref_absent":
35            file => "/etc/thunderbird/pref/thunderbird.js",
36            line => $pref_absent,
37            ensure => absent,
38            require => Package["thunderbird"]
39        }
40        line { "on$pref_present":
41            file => "/etc/thunderbird/pref/thunderbird.js",
42            line => $pref_present,
43            ensure => present,
44            require => Package["thunderbird"]
45        }
46    }
47
48    add_pref {  "prefencias":
49        pref_present => 'pref("mailnews.database.global.indexer.enabled", false);',
50        pref_absent =>  'pref("mailnews.database.global.indexer.enabled", true);'
51    }
52
53}
54
55class escritorio::tb2::extensions {
56
57    svn::checkout { thunderbird-extension:
58        repository => "https://svn.redcta.org.ar/proyectos/redcta/trunk/thunderbird",
59        local_path => "/dist/svn-redcta",
60        local_name => "thunderbid-extensions"
61    }
62
63    file { "/usr/share/thunderbird/isp/example-isp.rdf":
64        ensure => "/dist/svn-redcta/thunderbid-extensions/agregados/sources/isp/example-isp.rdf"
65    }
66
67# TODO: hacer lo andar bien...
68#    file { "/usr/lib/thunderbird/extensions/syncmlplugin@funambol.com":
69#        ensure => "/dist/svn-redcta/thunderbid-extensions/funambol/dist"
70#    }
71}
72
Note: See TracBrowser for help on using the repository browser.