title: Install Specific PHP Version with Puppet & Vagrant
body: <p>First time puppet user, and I'm having trouble getting an install of a specified version of PHP using Vagrant.  I'm using the example42/php module, and I keep running into <code>ensure</code> problems.</p>
  
  <pre><code>Error: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do
  Error: /Stage[main]/Php/Package[php]/ensure: change from absent to 5.5.12 failed: Could not update: Execution of '/usr/bin/yum -d 0 -e 0 -y install php-5.5.12' returned 1: Error: Nothing to do
  Warning: /Stage[main]/Php/File[php.conf]: Skipping because of failed dependencies
  </code></pre>
  
  <p>spits out of my console, followed by another attempt that's identical.</p>
  
  <p>My .pp file I'm provisioning with:</p>
  
  <pre><code>class lamp {
      # package {'php':
      #   ensure =&gt; present,
      # }
  }
  node 'node1' {  
      include lamp
      file { '/php':
          ensure =&gt; directory,
          # I read that I may need to have a directory in order for the install to work...
      }
      class { 'php':
          version =&gt; '5.5.12',
      }
  }
  </code></pre>
  
  <p>As far as I can tell, I'm referencing correctly to the modules, which I store inside /puppet/modules/ and it's finding them, but I'm having a hard time getting a specific version of PHP to install.  I could use a very simple "getting started LAMP" for Puppet <strong>but that only install 5.3.3 even if I <code>ensure =&gt; latest,</code></strong></p>