From d938848a4c2f05f1c839c84abb942569aed978b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonatan=20P=C3=A5lsson?= Date: Sun, 17 Dec 2017 11:20:31 +0100 Subject: [PATCH] Update Vagrant box to Ubuntu Xenial64 --- Vagrantfile | 14 ++++++-------- vagrant/provision.yml | 15 +++++++++++---- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 1582a0431..2c3c7a855 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -13,7 +13,7 @@ Vagrant.configure(2) do |config| # Every Vagrant development environment requires a box. You can search for # boxes at https://atlas.hashicorp.com/search. #config.vm.box = "ubuntu/trusty64" - config.vm.box = "ubuntu/wily64" + config.vm.box = "ubuntu/xenial64" # Disable automatic box update checking. If you disable this, then # boxes will only be checked for updates when the user runs @@ -44,13 +44,11 @@ Vagrant.configure(2) do |config| # backing providers for Vagrant. These expose provider-specific options. # Example for VirtualBox: # - # config.vm.provider "virtualbox" do |vb| - # # Display the VirtualBox GUI when booting the machine - # vb.gui = true - # - # # Customize the amount of memory on the VM: - # vb.memory = "1024" - # end + + config.vm.provider "virtualbox" do |vb| + vb.memory = "2048" + end + # # View the documentation for the provider you are using for more # information on available options. diff --git a/vagrant/provision.yml b/vagrant/provision.yml index 32ba6ab6b..6916016f7 100644 --- a/vagrant/provision.yml +++ b/vagrant/provision.yml @@ -1,4 +1,11 @@ --- +- hosts: all + gather_facts: False + + tasks: + - name: Install Python 2 + raw: test -e /usr/bin/python || (sudo apt -y update && sudo apt install -y python-minimal) + - hosts: all become: true @@ -58,15 +65,15 @@ - name: Create config directories file: state=directory - path=/home/vagrant/.config/brewtarget/ + path=/home/ubuntu/.config/brewtarget/ recurse=yes - owner=vagrant + owner=ubuntu - name: Install default config copy: src=brewtarget.conf - dest=/home/vagrant/.config/brewtarget/brewtarget.conf - owner=vagrant + dest=/home/ubuntu/.config/brewtarget/brewtarget.conf + owner=ubuntu mode=0644 # vim: ft=ansible