rackspace command and subcommands (list images and flavors) #73

merged 8 commits into from Feb 27, 2014


None yet
3 participants

maxlinc commented Feb 25, 2014

I wanted to get an idea of how to add commands within the Rackspace provider that re-use existing middleware, like ConnectRackspace to get the Fog::Compute connection. I haven't added tests or beautified the output, but I wanted to share a simple working solution to get feedback.

This adds the commands:

  • vagrant rackspace images
  • vagrant rackspace flavors

(Remember that in this repo you'll need to use "bundle exec", but normal vagrant-rackspace users won't)

Also, multi-machine settings do work. In a multiple machine environment (like the Vagrantfile.multi sample I added) the command without sub arguments will display the images (or flavors) available for each machine. In the Vagrantfile.multi example the machines are named after regions, so you can view images or flavors for just the machine named dfw with:

  • vagrant rackspace images dfw
  • vagrant rackspace flavors dfw

elight commented Feb 25, 2014

If you're going to go this far, feel like fixing #71 by adding a "freezedry" action that creates an image?

elight referenced this pull request Feb 25, 2014


Freeze dry #74


krames commented Feb 27, 2014

@maxlinc Can I get you to submit another PR adding the documentation for this?


krames commented Feb 27, 2014

@maxlinc LGTM!!! Thanks!!!

@krames krames pushed a commit that referenced this pull request Feb 27, 2014

Kyle Rames Merge pull request #73 from maxlinc/commands
rackspace command and subcommands (list images and flavors)

@krames krames merged commit 18287bb into mitchellh:master Feb 27, 2014


maxlinc commented Feb 27, 2014

Working on it, but FYI it seems like in order to get help (i.e. vagrant rackspace images -h) working properly need to refactor, so the PR won't be just docs.

maxlinc deleted the maxlinc:commands branch Feb 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment