Last modified: 2014-07-11 16:37:40 UTC
I've installed the latest version of vagrant (1.6.1) and followed the manual. Unfortunately the commands 'list-roles' and 'enable-role' did not show up when calling 'vagrant list-commands'. The commands could not be executed either. After downgrading to Vagrant 1.5.4 it worked. Maybe something has changed in the Vagrantfile synatx.
According to http://www.vagrantup.com/blog.html, "Vagrant 1.6 introduces no breaking backwards compatibilities". However, I can confirm that this is also happening to me. This might instead be a regression in Vagrant 1.6 rather than a change in the Vagrantfile syntax.
Created attachment 15333 [details] Output of "vagrant list-roles --debug" on Vagrant 1.5.4 Uploading output of "vagrant list-roles --debug" on Vagrant 1.5.4 (for comparison) on Kubuntu 14.04. I'll upload the output of the same command on Vagrant 1.6.1 in a moment.
Created attachment 15334 [details] Output of "vagrant list-roles --debug" on Vagrant 1.6.1
Created attachment 15335 [details] Output of "vagrant list-roles --debug" on Vagrant 1.5.4 Accidentally copy-pasted the 1.5.4 output twice. Reuploading without the redundancy and marking the first attachment obsolete.
This bug is still present after updating to Vagrant 1.6.2.
I hope upstream will restore the ability to extend Vagrant from within Vagrantfile. See <https://github.com/mitchellh/vagrant/issues/3775>. In the meantime, we should look into alternate ways of distributing the plugin code.
Change 136441 had a related patch set uploaded by Dduvall: Packaged plugin as gem to allow local installation https://gerrit.wikimedia.org/r/136441
Change 136441 merged by jenkins-bot: Packaged plugin as gem to allow local installation https://gerrit.wikimedia.org/r/136441
Thanks to Dan's hard work we now have the plugin packaged properly, a script to automate updating it in the user's Vagrant and a guard in the Vagrantfile to halt and tell the user how to update. Awesome.