world-direct / k8s-setup

Setup local and production hybrid clusters, using Ansible and Vagrant
4 stars 0 forks source link

Automatic installation of vagrant plugins fails on first call #13

Open gprossliner opened 4 years ago

gprossliner commented 4 years ago

Steps to reproduce:

$ ./k8s-setup provision hosts
Installing the 'vagrant-hosts' plugin. This can take a few minutes...
Fetching: vagrant-hosts-2.9.0.gem (100%)
Installed the plugin 'vagrant-hosts (2.9.0)'!
Bringing machine 'lnxclp1' up with 'virtualbox' provider...
Bringing machine 'lnxwrk1' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The 'hosts' provisioner could not be found.
gprossliner commented 4 years ago

On subsequent calls, the command completes successfully. It seems like Vagrant has a in-memory list of plugins, and don't expect a plugin to be installed by the Vagrantfile. We could move this into the python scripts.