cookbook 'mozilla_firefox', '= 1.1.0'
mozilla_firefox (14) Versions 1.1.0 Follow2
Installs Mozilla Firefox browser
cookbook 'mozilla_firefox', '= 1.1.0', :supermarket
knife supermarket install mozilla_firefox
knife supermarket download mozilla_firefox
Mozilla Firefox Cookbook
This cookbook installs Firefox browser. Mac OS X and Windows download directly from
Mozilla where you can specify version (e.g., latest
, latest-esr
, latest-beta
, 42.0
, 38.4.0esr
, or 43.0b4
)
and language with latest-esr
and en-US
being the defaults.
Linux platforms only use the package manager at this time.
A firefox_version
method is also available to retrieve the version installed.
Requirements
Chef 11+
Platforms
- CentOS/RHEL
- Debian (Mozilla Iceweasel)
- Mac OS X
- Ubuntu
- Windows
Cookbooks
- windows
- dmg
Usage
Include default recipe in a cookbook or a run list to install Firefox browser.
The following example retrieves version installed by using firefox_version
method:
v = firefox_version
Tip: use allow_any_instance_of
to stub firefox_version method when testing with rspec:
allow_any_instance_of(Chef::Recipe).to receive(:firefox_version).and_return('42.0')
Attributes
-
node['mozilla_firefox']['version']
- Installlatest
,latest-esr
,latest-beta
, or specific version e.g.,42.0
,38.4.0esr
, or43.0b4
. Mac OS X and Windows only (Linux platforms use the package manager). Default islatest-esr
. -
node['mozilla_firefox']['lang']
- Language to install. Windows and Mac OS X only. Default isen-US
. -
node['mozilla_firefox']['32bit_only']
- Install 32-bit browser on 64-bit machines. Windows only. Default isfalse
.
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE
file for details.
CHANGELOG
1.1.0 2016-03-21
- Fix #2 Change default version from latest to latest-esr
1.0.1
- Fix #1 Chef 11 throws EOFError
1.0.0
- Initial release
Foodcritic Metric
1.1.0 passed this metric
1.1.0 passed this metric