cookbook 'mozilla_firefox', '~> 3.0.1'
mozilla_firefox (14) Versions 3.0.1 Follow2
Installs Mozilla Firefox browser
cookbook 'mozilla_firefox', '~> 3.0.1', :supermarket
knife supermarket install mozilla_firefox
knife supermarket download mozilla_firefox
Mozilla Firefox Cookbook
This cookbook installs Firefox browser. Mac OS X, Linux, 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. CentOS, Red Hat, Ubuntu and Debian platforms default to using the package manager.
A firefox_version method is also available to retrieve the default version installed.
Requirements
Chef 12.6+
Platforms
- CentOS/Red Hat
- Debian/Ubuntu
- Mac OS X
- Windows
Cookbooks
- dmg
Usage
Include default recipe in a cookbook or a run list to install Firefox browser.
The following example retrieves the default installed version 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. Ignored on CentOS, Red Hat and Debian platforms whenuse_package_manageris true. Default islatest-esr. -
node['mozilla_firefox']['lang']- Language desired. Ignored on CentOS, Red Hat and Debian platforms whenuse_package_manageris true. Default isen-US. -
node['mozilla_firefox']['force_32bit']- Install 32-bit browser on 64-bit machines. Ignored on Mac OS X and package installs. Defaultfalse. -
node['mozilla_firefox']['use_package_manager']- Install using apt or yum package manager. CentOS, Red Hat, Ubuntu and Debian platforms only. Default istrue. -
node['mozilla_firefox']['packages']- Dependency packages for non-package installs. Linux platform only. Default values depend on Linux platform.
Resources
Use mozilla_firefox resource to install multiple versions of firefox on the same server. Note that firefox_version
method should not be used when multiple firefox versions are installed.
mozilla_firefox
Attributes
-
version- Installlatest,latest-esr,latest-beta, or specific version e.g.,42.0,38.4.0esr, or43.0b4. Ignored on CentOS, Red Hat and Debian platforms whenuse_package_manageris true. -
checksum- SHA256 Checksum of the file. Not required. -
lang- Language desired. Ignored on CentOS, Red Hat and Debian platforms whenuse_package_manageristrue. Default isen-US. -
force_32bit- Install 32-bit browser on 64-bit machines. Ignored on Mac OS X and package installs. Defaultfalse. -
path- Path to install Firefox. Linux:/opt/firefox/#{version}_#{language}, Windows:#{ENV['SYSTEMDRIVE']}\\Program Files\\Mozilla Firefox\\firefox.exewhen nil. Defaultnil. -
use_package_manager- Install using apt or yum package manager. Linux platforms only. Default istrue. -
link- Create the specfied symlink (Linux non-package installs only). This can be an array to create multiple symlinks to the same instance, or a string for a single symlink. Defaultnil. -
packages- Dependency packages for non-package installs. CentOS, Red Hat and Debian platforms only. Default values depend on Linux platform. -
windows_ini_source- Template source. Defaultwindows.ini.erb. -
windows_ini_content- Template content. DefaultInstallDirectoryPath: :path. -
windows_ini_cookbook- Template cookbook. Defaultmozilla_firefox.
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
3.0.1 2017-06-12
- Allow for non-package manager installs on all linux platforms
- Drop support for CentOS 5
3.0.0 2017-03-24
- Rename retries attribute to attempts to be Chef 13 compatible
- Removed 32bit_only attribute (use force_32bit instead)
- Default Ubuntu to using package manager
2.1.1 2017-02-04
- Fix #13 firefox_version throws exception on macosx
2.1.0 2017-01-28
- Replace iceweasel package with firefox-esr on debian platform
- Ubuntu no longer defaults to using package manager
2.0.0 2016-10-01
- Drop support for Chef 11
1.2.4 2016-09-23
- Fix #10 Recipe fails on x64 install
- Fix #8 Remove carriage return characters from firefox_version
- Fix #7 Retry (up to 5 times) when download fails
1.2.3 2016-09-21
- Fix system cannot find the path specified on Windows
1.2.2 2016-09-21
- Fix 'firefox' is not recognized as an internal or external command on Windows
1.2.1 2016-09-20
- Fix #6 Firefox no longer installing causing Recipe compile error
1.2.0 2016-09-03
- Allow for multiple version installs
- Add experimental non-package install for Linux - only Ubuntu platform works at this time
1.1.1 2016-07-11
- Fix #4 Windows ESR versions always re-install
1.1.0 2016-03-21
- Fix #2 Change default version from latest to latest-esr
1.0.1 2015-11-18
- Fix #1 Chef 11 throws EOFError
1.0.0 2015-11-18
- Initial release
Collaborator Number Metric
3.0.1 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.1 failed this metric
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mozilla_firefox/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 failed this metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
3.0.1 failed this metric
FC121: Cookbook depends on cookbook made obsolete by Chef 14: mozilla_firefox/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
3.0.1 passed this metric
Testing File Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
3.0.1 failed this metric
3.0.1 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number