Skip to content

Instantly share code, notes, and snippets.

@jamescarr
Last active December 13, 2015 13:10
Show Gist options
  • Select an option

  • Save jamescarr/49643782d371d10bb55a to your computer and use it in GitHub Desktop.

Select an option

Save jamescarr/49643782d371d10bb55a to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.synced_folder ".", "/home/vagrant/my-project", :nfs => true
config.vm.provision "shell", inline: "gem install librarian-puppet"
config.vm.provision "shell", inline: "cp /home/vagrant/my-project/Puppetfile /tmp"
config.vm.provision "shell", inline: "cd /tmp && librarian-puppet install --verbose"
config.vm.provision "puppet" do |puppet|
puppet.temp_dir = "/tmp"
puppet.options = ['--modulepath=/tmp/modules']
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment