From 8d14826169c494f987f243364d7d6ba5dfa18b85 Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sun, 25 Sep 2016 01:10:17 +0200 Subject: [PATCH] Improve Vagrant setup Use debian/contrib-jessie64 base box, install python-cryptography before saltstack bootstrap. --- Vagrantfile | 7 +++++-- salt/bootstrap.sh | 5 +++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Vagrantfile b/Vagrantfile index 8f090c5..830f1ae 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -2,13 +2,16 @@ # vi: set ft=ruby : Vagrant.configure(2) do |config| - config.vm.box = "debian/jessie64" + config.vm.box = "debian/contrib-jessie64" + config.vm.hostname = "gvafile.local" config.vm.network "private_network", ip: "172.16.3.4" + config.vm.synced_folder "../gvasalt/states/", "/srv/salt/" config.vm.synced_folder "../gvasalt/pillar/", "/srv/pillar/" + config.vm.provider "virtualbox" do |vb| - # vb.gui = true + # vb.gui = true vb.memory = "512" end diff --git a/salt/bootstrap.sh b/salt/bootstrap.sh index c24ee37..9db2a28 100755 --- a/salt/bootstrap.sh +++ b/salt/bootstrap.sh @@ -1,5 +1,10 @@ #!/bin/sh - +echo "deb http://httpredir.debian.org/debian jessie-backports main" >/etc/apt/sources.list.d/backports.list + +apt-get update +apt-get install -y -t jessie-backports python-cryptography + # We just download the bootstrap script by default and execute that. if [ -x /usr/bin/fetch ]; then /usr/bin/fetch -o - https://raw.githubusercontent.com/saltstack/salt-bootstrap/stable/bootstrap-salt.sh | sh -s -- "$@"