Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

mozilla_firefox (14) Versions 1.2.1

Installs Mozilla Firefox browser

Policyfile
Berkshelf
Knife
cookbook 'mozilla_firefox', '= 1.2.1', :supermarket
cookbook 'mozilla_firefox', '= 1.2.1'
knife supermarket install mozilla_firefox
knife supermarket download mozilla_firefox
README
Dependencies
Changelog
Quality 50%

Mozilla Firefox Cookbook

Cookbook Version
linux
osx
win

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 default to use the package manager.

Linux can install directly from Mozilla by setting use_package_manager to false, but this is experimental and
only Ubuntu platform works at this time.

A firefox_version method is also available to retrieve the default version installed.

Requirements

Chef 11+

Platforms

  • CentOS/Red Hat
  • Debian/Ubuntu
  • Mac OS X
  • Windows

Cookbooks

  • windows
  • 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'] - Install latest, latest-esr, latest-beta, or specific version e.g., 42.0, 38.4.0esr, or 43.0b4. Ignored on Linux platforms when use_package_manager is true. Default is latest-esr.
  • node['mozilla_firefox']['lang'] - Language desired. Ignored on Linux platforms when use_package_manager is true. Default is en-US.
  • node['mozilla_firefox']['32bit_only'] - DEPRECATED! This will be dropped in next major release, use force_32bit instead.
  • node['mozilla_firefox']['force_32bit'] - Install 32-bit browser on 64-bit machines. Ignored on Mac OS X and package installs. Default false.
  • node['mozilla_firefox']['use_package_manager'] - Install using apt or yum package manager. Linux platform only. Default is true.
  • node['mozilla_firefox']['packages'] - Dependency packages for experimental non-package installs. Linux platform only. Default values depend on Linux platform.

Resources

mozilla_firefox

Attributes

  • version - Install latest, latest-esr, latest-beta, or specific version e.g., 42.0, 38.4.0esr, or 43.0b4. Ignored on Linux platforms when use_package_manager is true.
  • checksum - SHA256 Checksum of the file. Not required.
  • lang - Language desired. Ignored on Linux platforms when use_package_manager is true. Default is en-US.
  • force_32bit - Install 32-bit browser on 64-bit machines. Ignored on Mac OS X and package installs. Default false.
  • path - Path to install Firefox. Linux: /opt/firefox/#{version}_#{language}, Windows: #{ENV['SYSTEMDRIVE']}\\Program Files\\Mozilla Firefox\\firefox.exe when nil. Default nil.
  • use_package_manager - Install using apt or yum package manager. Linux platform only. Default is true.
  • link - Create the specfied symlink (Linux Only). This can be an array to create multiple symlinks to the same instance, or a string for a single symlink. Default nil.
  • packages - Dependency packages for experimental non-package installs. Linux platform only. Default values depend on Linux platform.
  • windows_ini_source - Template source. Default windows.ini.erb.
  • windows_ini_content - Template content. Default InstallDirectoryPath: :path.
  • windows_ini_cookbook - Template cookbook. Default mozilla_firefox.

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE
file for details.

CHANGELOG

1.2.0 2016-09-20

  • Fix #6 Firefox no longer installing causing Repice 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
            

1.2.1 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

1.2.1 passed this metric