From 9c5c0f2697240738af1bfb3de03b44ba17767ca5 Mon Sep 17 00:00:00 2001 From: Aleksandr Didenko Date: Mon, 20 Jun 2016 16:12:18 +0200 Subject: [PATCH] Minor update in README --- README.md | 9 +++++++-- Vagrantfile | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a2cbb58d3..1074665fe 100644 --- a/README.md +++ b/README.md @@ -8,16 +8,21 @@ Requirements * `libvirt` * `vagrant` -* `vagrant-libvirt` plugin +* `vagrant-libvirt` plugin (`vagrant plugin install vagrant-libvirt`) * `$USER` should be able to connect to libvirt (test with `virsh list --all`) How-to ====== -* Prepare the virtual lab: +* Change default IP pool for vagrant networks if you want: ```bash export VAGRANT_POOL="10.100.0.0/16" +``` + +* Prepare the virtual lab: + +```bash git clone https://github.com/adidenko/vagrant-k8s cd vagrant-k8s vagrant up diff --git a/Vagrantfile b/Vagrantfile index 8c61723e7..f884441db 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -1,8 +1,9 @@ # -*- mode: ruby -*- # vi: set ft=ruby : +pool = ENV["VAGRANT_POOL"] || "10.250.0.0/16" + ENV["VAGRANT_DEFAULT_PROVIDER"] = "libvirt" -pool = ENV["VAGRANT_POOL"] || "10.210.0.0/16" prefix = pool.gsub(/\.\d+\.\d+\/16$/, "") $num_instances = 7