title: Vagrant + Chef + apt: Is it possible to install a specific version of a deb package on a Ubuntu VM?
body: <p>I'm using Vagrant with Chef to build a Ubuntu 12.04 virtual machine. I'm using the opscode cookbooks from here: <a href="https://github.com/opscode/cookbooks" rel="noreferrer">https://github.com/opscode/cookbooks</a></p>
  
  <p>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:</p>
  
  <pre><code>package "git" do
    action :install
  end
  </code></pre>
  
  <p>I know that if you install the package using apt from the command line, you can specify the version like so:</p>
  
  <pre><code>apt-get install git=1:1.7.9.5-1
  </code></pre>
  
  <p>But I can't figure out how to do this via the cookbook. Is this possible?</p>