Skip to content

Commit

Permalink
Vagrantfile upgrade to Ubuntu 16.04 'bento' box
Browse files Browse the repository at this point in the history
  • Loading branch information
bboreham committed Dec 16, 2016
1 parent 6592a9a commit 6548b09
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Vagrantfile
Expand Up @@ -19,7 +19,7 @@ pkgs = %w(

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

config.vm.box = "ubuntu/wily64"
config.vm.box = "bento/ubuntu-16.04"

config.vm.network "private_network", ip: vm_ip
config.vm.provider :virtualbox do |vb|
Expand Down
2 changes: 1 addition & 1 deletion test/Vagrantfile
Expand Up @@ -14,7 +14,7 @@ require '../vagrant-common.rb'
def configure_docker(host, hostname, ip)
pkgs = %w(docker-engine ethtool)

host.vm.box = "ubuntu/wily64"
host.vm.box = "bento/ubuntu-16.04"

host.vm.provision :shell, :inline => "hostnamectl set-hostname "+hostname
host.vm.network "private_network", ip: ip
Expand Down
4 changes: 2 additions & 2 deletions vagrant-common.rb
Expand Up @@ -66,8 +66,8 @@ def cleanup(vm)
vm.provision :shell, :inline => <<SCRIPT
export DEBIAN_FRONTEND=noninteractive
## Who the hell thinks official images have to have both of these?
/etc/init.d/chef-client stop
/etc/init.d/puppet stop
[ ! -f /etc/init.d/chef-client ] || /etc/init.d/chef-client stop
[ ! -f /etc/init.d/puppet ] || /etc/init.d/puppet stop
apt-get -qq remove puppet chef
apt-get -qq autoremove
killall -9 chef-client 2>/dev/null || true
Expand Down

0 comments on commit 6548b09

Please sign in to comment.