Problems running Vagrant/Puppet on osx 10.7
===

I'm just getting started with [Vagrant][1] and [Puppet][2]. I'm able to get a Virtualbox running but now I want to automate the software that gets installed on it.

In my Vagrantfile I have:

    Vagrant::Config.run do |config|
    
        config.vm.box = "precise64"
        
        config.vm.forward_port 80, 9090
        config.vm.forward_port 27017, 27017
        
        config.vm.provision :puppet do |puppet|
         puppet.manifests_path = "manifests"
         puppet.manifest_file  = "default.pp"
        end
        
    end

in manifests/default.pp I have:

    Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
    
    class php5{
        package { "php5":
            ensure => present,
        }
    }
        
        
    include php5


However, when I run ```vagrant up``` I get the following error (snippet). 

    [default] Running Puppet with /tmp/vagrant-puppet/manifests/default.pp...
    stdin: is not a tty
    No LSB modules are available.
    warning: Could not retrieve fact fqdn
    err: /Stage[main]/Php5/Package[php5]/ensure: change from purged to present failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install php5' returned 100: Reading package lists...


I'm not really sure where the error lies, so here is some further information which might be useful


    #running puppet gives
    $ puppet
    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- facter (LoadError)
    	from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    	from /Library/Ruby/Site/1.8/puppet.rb:9
    	from /Library/Ruby/Site/1.8/puppet/util.rb:208:in `require'
    	from /Library/Ruby/Site/1.8/puppet/util.rb:208:in `absolute_path?'
    	from /Library/Ruby/Site/1.8/puppet/util.rb:170:in `which'
    	from /Library/Ruby/Site/1.8/puppet/util/command_line.rb:82:in `execute_external_subcommand'
    	from /Library/Ruby/Site/1.8/puppet/util/command_line.rb:70:in `execute'
    	from /usr/bin/puppet:4

Ruby version

    $ ruby -v 
    ruby 1.8.7 (2011-12-28 patchlevel 357) [universal-darwin11.0]

gem sources

    $ gem sources 
    *** CURRENT SOURCES ***
    
    http://rubygems.org/


  [1]: http://vagrantup.com/
  [2]: http://puppetlabs.com/