source: trunk/puppet/modules/puppet-escritorio/manifests/classes/firefox.pp @ 766

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

Como modificar la search engine por defecto

File size: 994 bytes
Line 
1# Example:
2#    escritorio::ubufox::startuppage { dist:
3#        startuppage => "http://www.sedenacional.cta.org.ar",
4#    }
5# o
6#
7# include escritorio::ubufox::searchplugins
8
9define escritorio::ubufox::startuppage ( $startuppage ) {
10    file { "/etc/xul-ext/ubufox.js":
11    ensure  => "present",
12    content => "pref(\"browser.startup.homepage\", \"file:/etc/xul-ext/ubuntu-firefox-startup-page.conf\");\n",
13   }
14
15   file { "/etc/xul-ext/ubuntu-firefox-startup-page.conf":
16   ensure  => "present",
17   content => "browser.startup.homepage=$startuppage\n",
18   }
19}
20
21
22# para default de search engine usar browser.search.defaultenginename
23class escritorio::ubufox::searchplugins  {
24    file { "/usr/share/xul-ext/ubufox/searchplugins/ask.xml":
25        ensure => absent
26    }
27
28    file { "/usr/share/xul-ext/ubufox/searchplugins/scroggle-ssl-spanish.xml":
29        owner => root,
30        group => root,
31        mode => 644,
32        source => "puppet:///escritorio/firefox/scroogle-ssl-spanish.xml"
33    }
34}
Note: See TracBrowser for help on using the repository browser.