Thanks Gareth!

I was able to get it to work.  After looking at your link, I moved what I 
believe to be common code into a base.pp as shown below:

# -*- mode: ruby -*-
# vi: set ft=ruby :

# vagrantfile

VAGRANT_API_VERSION=2
Vagrant.configure(VAGRANT_API_VERSION) do |config|
  config.vm.box = "hashicorp/precise64"
  config.vm.provision :puppet do |puppet|
    puppet.manifests_path = "manifests"
    puppet.options = ['--verbose --debug']
    puppet.module_path    = [ 'modules' ]
    puppet.manifest_file = "base.pp"
  end  
end

# base.pp

group { "puppet":
  ensure => "present",
}

$hadoop_home = "/home/vagrant"

Exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }
exec { 'apt-get update':
  command => 'apt-get update',
}

include hadoop 


And modified my directory structure to include a modules directory like 
this:

vagrant
|__manifests
|____base.pp
|__modules
|____hadoop
|______manifests
|________init.pp
|________javaProvisioner.pp
|______tests
|________init.pp
|__vagrantfile

Regards,

Kurt W. Andrews
Mad Computer Scientist

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to