cookbook 'sbp_packer', '~> 1.4.8'
sbp_packer (13) Versions 1.4.8 Follow5
Installs/Configures packer
cookbook 'sbp_packer', '~> 1.4.8', :supermarket
knife supermarket install sbp_packer
knife supermarket download sbp_packer
sbp_packer cookbook
Installs Packer using the ark cookbook.
Original cookbook from Emil Sit : https://github.com/sit/chef-packer
Requirements
None.
Usage
Just include recipe[sbp_packer]
in your run list.
Change attribute from 'binary' to 'source' if you prefer to install directly from github
This will put Packer into /usr/local
in a packer-*version*
directory, with a symlink of packer
to /usr/local/bin
.
Attributes
-
node['packer']['url_base']
- Base URL from which to download (in case you have your own mirror). Defaults to the link at http://www.packer.io/downloads.html. -
node['packer']['zipfile']
- On binary installations, this is the name of the packer zip file with no path info -
node['packer']['version']
- The version of Packer to install. -
node['packer']['arch']
- Architecture to use; auto-detects amd64 and 386 but you must override with arm if desired. -
node['packer']['raw_checksums']
- The contents of the upstream checksum file to allow checksum auto-detection. -
node['packer']['checksums']
- AHash
mapping file name to checksums, derived by default fromraw_checksums
. -
node['packer']['checksum']
- SHA-256 checksum of appropriate binary. Should be auto-detected for the default version using data inraw_checksums
orchecksums
. -
node['packer']['install_method']
- Either 'binary' or 'source'
When overriding with a particular desired version, you can set the checksum a variety of ways. When
this cookbook is updated for a new default version, the checksums will be updated by the maintainers.
If you require a particular older (or newer) version, you can update the
raw_checksums
with the official SHA256SUM list from
https://releases.hashicorp.com/packer/${VERSION}/packer_${VERSION}_SHA256SUMS
(easiest), directly override the checksums
attribute with an explicit map of
just the versions you want (somewhat more work for you), or just directly
setting the checksum
attribute (if you only need a single platform).
Note that you can also ignore the checksum variables if you don't care about downloading
the binary repeatedly as Chef only uses the checksum to avoid re-downloads, and not
to verify integrity.
Author
Thanks to Emil Sit for the original cookbook and the following for inspiration through PR's and their chef work:
John Bellone (jbellone@bloomberg.net) - https://github.com/johnbellone/consul-cookbook/tree/v0.11.1/recipes
Author:: Emil Sit (sit@hadapt.com)
Author:: Andrew Repton (arepton@schubergphilis.com)
Dependent cookbooks
ark >= 1.0.0 |
golang >= 1.7.0 |
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
This is a changelog for the sbp_packer cookbook.
Unreleased
- Chef13 compatibility updates
- disabled and removed minitest-handler tests
- Added new inspec smoke tests for kitchen verification
- Added Ubuntu-16.04 to test suites
1.4.3
- Unlock metadata.rb depends for ark and golang.
1.4.2
- Update to Packer 0.12.2
- Update test kitchen centos-6.6 to centos-6.8
1.4.0
- Fix from ecliptik for incorrectly generated download URL
- Update to Packer 0.10.0 from ecliptik
- Move sha256sums for 0.9.0 back into attributes
1.2.0
- Starting the change log here, since none existed before
- Updated for packer 0.9.0
- added minitest-handler dependency for run-time assertions
- Added node['packer']['source_repo_url'] to contain the URL for the packer repo during a source install
Maintainer Andrew Repton arepton@schubergphilis.com
Contributor Dang H. nguyen haidangwa@gmail.com
Contributor Micheal Waltz ecliptik@gmail.com
Collaborator Number Metric
1.4.8 failed this metric
Failure: Cookbook has 1 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.4.8 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
1.4.8 failed this metric
FC066: Ensure chef_version is set in metadata: sbp_packer/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sbp_packer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.4.8 passed this metric
Testing File Metric
1.4.8 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
1.4.8 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
1.4.8 failed this metric
1.4.8 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
1.4.8 failed this metric
FC066: Ensure chef_version is set in metadata: sbp_packer/metadata.rb:1
FC069: Ensure standardized license defined in metadata: sbp_packer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.4.8 passed this metric
Testing File Metric
1.4.8 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
1.4.8 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
1.4.8 failed this metric
FC069: Ensure standardized license defined in metadata: sbp_packer/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.4.8 passed this metric
Testing File Metric
1.4.8 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
1.4.8 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
1.4.8 failed this metric
1.4.8 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