counsyl / puppet-packer Goto Github PK
View Code? Open in Web Editor NEWPuppet module for installing Packer, the virtual machine image creation tool.
License: Other
Puppet module for installing Packer, the virtual machine image creation tool.
License: Other
class { 'packer':
version => '0.10.0',
}
Leads to the following failure.
==> default: Notice: /Stage[main]/Packer/Exec[install-packer]: Dependency Exec[fetch-download-packer] has failures: true
==> default: Error: /usr/bin/wget --quiet --output-document='/usr/local/packer/packer_0.10.0_linux_amd64.zip' 'https://dl.bintray.com/mitchellh/packer/packer_0.10.0_linux_amd64.zip' returned 8 instead of one of [0]
==> default: Error: /Stage[main]/Packer/Sys::Fetch[download-packer]/Exec[fetch-download-packer]/returns: change from notrun to 0 failed: /usr/bin/wget --quiet --output-document='/usr/local/packer/packer_0.10.0_linux_amd64.zip' 'https://dl.bintray.com/mitchellh/packer/packer_0.10.0_linux_amd64.zip' returned 8 instead of one of [0]
==> default: Warning: /Stage[main]/Packer/Exec[install-packer]: Skipping because of failed dependencies
This will fail on any version of Packer as @bryantrobbins noted in #5
I think you still have 0.9.17 on puppet forge while 0.9.18 is the latest.
Thanks for the great tool!
Not sure if this is best practices but is a good idea to add a package defined check around the wget package installation?
Can you please add the puppet version support info to the metadata file?
It would be nice to have a facter fact for the Packer version.
If you're open to the change, I'm happy to create the pull-request.
Looks like there was a change to how the distributions are created as of 0.7.0. The zip files are now prefixed with packer_ although there is 2 for the 0.7.1 release. See the download list here:
packer.io publishes their GPG key (https://www.hashicorp.com/security.html) and also puts out signed SHA256 hashes of each release (https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_SHA256SUMS & https://releases.hashicorp.com/packer/1.1.3/packer_1.1.3_SHA256SUMS.sig)
It would be good thing to compare the SHA256 against the downloaded file, and verify the SHA256 with gpg to ensure that 'what is being installed' is exactly what packer.io is delivering, and has not been MITM'd etc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.