source: trunk/puppet/modules/puppet-escritorio/manifests/classes/oo3conf.pp @ 727

Last change on this file since 727 was 727, checked in by josx@…, 12 years ago

Agregando el diccionario de sinonimos para oo - Cerrando #83

File size: 1.5 KB
Line 
1# copyright <sebas @ koumbit.org>
2# < josx @ inteorganic.com.ar >
3# Licence: GPL
4#
5
6class escritorio::oo3conf {
7
8    package { [
9       "openoffice.org-common",
10       "openoffice.org-l10n-es",
11       "openoffice.org-pdfimport"
12       ]: ensure => installed
13    }
14}
15
16
17class escritorio::oo3conf::fileformat {
18    include escritorio::oo3conf
19
20   # we are changing the config file for write, calc and impress for oo3 3.0
21   change_oo3_default { [ "writer", "calc", "impress" ]: oo3_version => "-link"; }
22
23   # Configuration file for OO 3.X
24   define change_oo3_default($oo3_version) {
25     file { "/usr/lib/openoffice/basis$oo3_version/share/registry/modules/org/openoffice/Setup/Setup-$name.xcu":
26       owner => root,
27       group => root,
28       mode => 644,
29       source => "puppet:///escritorio/oo30conf/Setup-$name.xcu"
30     }
31   }
32}
33
34class escritorio::oo3conf::extensions {
35
36    define add_extension($archivo) {
37        file {
38            "/usr/lib/openoffice/share/extension/install/$archivo":
39            owner => root,
40            group => root,
41            mode => 644,
42            source => "puppet:///escritorio/oo30conf/$archivo"
43        }
44
45        exec { "add_extension_with_unopkg":
46            command => "unopkg add -f --shared /usr/lib/openoffice/share/extension/install/$archivo",
47            path => "/bin:/sbin:/usr/sbin:/usr/bin",
48            require => Package["openoffice.org-common"]
49        }
50    }
51   
52    add_extension { "extension": archivo => "Diccionarios-Argentina_1.oxt"; }
53
54}
Note: See TracBrowser for help on using the repository browser.