Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ FileUtils.mkdir_p(File.dirname(__FILE__)+'/projects')
FileUtils.mkdir_p(File.dirname(__FILE__)+'/projects/default')
FileUtils.mkdir_p(File.dirname(__FILE__)+'/logs')

update_script = <<SCRIPT
wget https://apt.puppetlabs.com/pubkey.gpg
apt-key add pubkey.gpg
apt-get update --yes
# This for the gpg bug https://github.com/puphpet/puphpet/commit/ea07fd4564077473ff962b3ddd8a3feba0f92cd6
yes "Y" | DEBIAN_FRONTEND=noninteractive apt-get upgrade --yes
SCRIPT

Vagrant.configure("2") do |config|

vagrant_version = Vagrant::VERSION.sub(/^v/, '')
Expand Down Expand Up @@ -37,6 +45,8 @@ Vagrant.configure("2") do |config|
eval(IO.read(File.join(File.dirname(__FILE__),'Customfile')), binding)
end

config.vm.provision "shell", inline: update_script

config.vm.provision :salt do |salt|
salt.verbose = true
salt.bootstrap_options= "-F -c /tmp -P"
Expand Down