Vagrant + Chef + apt: Is it possible to install a specific version of a deb package on a Ubuntu VM?
I’m using Vagrant with Chef to build a Ubuntu 12.04 virtual machine. I’m using the opscode cookbooks from here: https://github.com/opscode/cookbooks
I want to use the opscode apt cookbook to install packages. I want to make sure it installs a specific version of a package, to make sure the build environment is consistent. Here’s an example of what I’m trying to do:
package “git” do
I know that if you install the package using apt from the command line, you can specify the version like so:
apt-get install git=1:18.104.22.168-1
But I can’t figure out how to do this via the cookbook. Is this possible?
I think I figured it out. It’s pretty simple:
package "git" do version "1:22.214.171.124-1" action :install end
- Database Administration Tutorials
- Programming Tutorials & IT News
- Linux & DevOps World
- Ebook Reviews
- PES Matches, Skills & News