cookbook 'firefox_package', '= 0.3.0'
firefox_package (3) Versions 0.3.0 Follow1
Installs/Configures firefox_package
cookbook 'firefox_package', '= 0.3.0', :supermarket
knife supermarket install firefox_package
knife supermarket download firefox_package
firefox_package
This cookbook provides the firefox_package
provider which can be used
to install any version of firefox, including named versions such as 'latest-esr'
for multiple platforms.
Supported Platforms
- Linux
- Windows
Attributes
<table>
<tr>
<th>Key</th>
<th>Type</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>['firefox_package']['firefox'][version][language]</tt></td>
<td>String</td>
<td>Linux Only: Path to Firefox installation, where version is the requested version and language is the requested language. This is primarly used for uninstall purposes.</td>
<td><tt>"/opt/firefox/#{version}_en-US"</tt></td>
</tr>
</table>
Resources
firefox_package
Install the latest version of Firefox.
firefox_package 'latest'
Configure a 24 hour splay to reduce egress HTTPS requests to Mozilla servers.
ruby
firefox_package 'latest-esr' do
splay 84600
end
-
version
- Version of Firefox to install. Named versions, such aslatest
,latest-esr
,latest-prior-esr
,latest-beta
are all valid. (name_attribute) -
checksum
- SHA256 Checksum of the file. Not required. -
uri
- HTTPS uri to obtain the installer/archive. Defaults to:https://download-installer.cdn.mozilla.net/pub/firefox/releases
-
language
- Language desired. Defaults to:en-US
-
platform
- Platform you wish to download and install. Defaults to the OS from which Chef is running. -
path
- Path to install Firefox. Linux Only, Defaults to:/opt/firefox/#{version}_#{language}
-
splay
- Time in minutes to wait before next contact to Mozilla servers. Not required, defaults to 0 (zero) seconds. -
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.
License and Authors
Author:: Rapid7, LLC (<ryan_hass@rapid7.com>)
Dependent cookbooks
poise ~> 2.3.2 |
windows >= 0.0.0 |
build-essential >= 0.0.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
0.2.0
- Fixed Windows support to allow for multiple installations of Firefox.
- Added Chef Audit Mode Support
- Added Travis CI support for Pull Requests and development work.
0.1.0
Initial release of firefox_package
Foodcritic Metric
0.3.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/52bea1396db2f973b33de636/firefox_package/libraries/firefox_package.rb:244
FC002: Avoid string interpolation where not required: /tmp/cook/52bea1396db2f973b33de636/firefox_package/libraries/firefox_package.rb:265
FC009: Resource attribute not recognised: /tmp/cook/52bea1396db2f973b33de636/firefox_package/libraries/firefox_package.rb:186
FC031: Cookbook without metadata file: /tmp/cook/52bea1396db2f973b33de636/firefox_package/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/52bea1396db2f973b33de636/firefox_package/metadata.rb:1
0.3.0 failed this metric
FC002: Avoid string interpolation where not required: /tmp/cook/52bea1396db2f973b33de636/firefox_package/libraries/firefox_package.rb:265
FC009: Resource attribute not recognised: /tmp/cook/52bea1396db2f973b33de636/firefox_package/libraries/firefox_package.rb:186
FC031: Cookbook without metadata file: /tmp/cook/52bea1396db2f973b33de636/firefox_package/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/52bea1396db2f973b33de636/firefox_package/metadata.rb:1