vagrant-smartos / vagrant-smartos-packager

Create vagrant boxes of SmartOS global zones
19 stars 9 forks source link

vagrant-smartos-zones plugin check and install #2

Closed vdm closed 10 years ago

vdm commented 10 years ago

With just vagrant installed, starting from the vagrantcloud box smartos-base64-13.4.0:

$ vagrant init livinginthepast/smartos-base64-13.4.0
[...]
$ vagrant up
[...]
Vagrant:
* Unknown configuration section 'global_zone'.

This commit modifies the box Vagrantfile to check for the plugin and install it using a subshell.

lab $ vagrant up
vagrant-smartos-zones plugin is missing. Installing...
+ vagrant plugin install vagrant-smartos-zones
Now try again.

Vagrant currently lacks box/plugin dependencies, but apparently this will be addressed, in which case this should be reviewed.

/cc @sax, @khushil

sax commented 10 years ago

Awesome! I think I'll add something like this to the Vagrantfile that ships with boxes, which is Vagrantfile.bare in this repo. It takes me a bit to rebuild all the necessary boxes, but I should be able to get new versions of all the boxes out by this weekend.