Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

support "user_data" and "config_drive" configuration options #100

Merged
merged 3 commits into from
Jun 17, 2014

Conversation

michaelsbradleyjr
Copy link
Contributor

Fog supports the config_drive option as of 1.16.0 and the user_data option as of 1.22.0. Both options need to be set, for example, if one desires to deploy a CoreOS image on the Rackspace Cloud.

My "test" consisted of applying these same changes to the vagrant-rackspace plugin in ~/.vagrant.d/gems/gems/ (along with the changes in #99), and then successfully bringing online a CoreOS image with user_data adapted from the CoreOS website docs for Rackspace.

I also ran bundle exec rake and all the tests passed, which is a good sign I suppose (the fog version bump didn't break anything), though I did not write any specs for my changes per se (I don't really know ruby).

@@ -12,7 +12,7 @@ Gem::Specification.new do |gem|
gem.summary = "Enables Vagrant to manage machines in RackSpace Cloud."
gem.homepage = "http://www.vagrantup.com"

gem.add_runtime_dependency "fog", "~> 1.18"
gem.add_runtime_dependency "fog", "~> 1.22.1"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I get you to change the fog dependency version to 1.22 like so

gem.add_runtime_dependency "fog", "~> 1.22"

That way ruby gems will pick up patch releases.

BTW, you did a great job on this PR. Once you make this one minor change, I will will merge it in.

@michaelsbradleyjr
Copy link
Contributor Author

@krames okay, I modified the version number as requested. Thanks for the tip!

@krames
Copy link
Collaborator

krames commented Jun 17, 2014

Thanks!

krames pushed a commit that referenced this pull request Jun 17, 2014
support "user_data" and "config_drive" configuration options
@krames krames merged commit a8d2155 into mitchellh:master Jun 17, 2014
krames pushed a commit to rackspace/vagrant-rackspace that referenced this pull request Jun 19, 2014
…data"

This reverts commit a8d2155, reversing
changes made to 64618d1.
@krames
Copy link
Collaborator

krames commented Jun 20, 2014

@michaelsbradleyjr I just released vagrant-rackspace 0.1.8 and unfortunately I had to pull this PR because vagrant-aws does not currently support fog 1.22. I have submitted PR mitchellh/vagrant-aws#253 to get this increased.

I have put your changes back into the master branch and hopefully it will make it out in the next vagrant-rackspace release.

/cc @elight @smashwilson

krames pushed a commit that referenced this pull request Jun 20, 2014
…ata""

This reverts commit 6ad6a81.

Conflicts:
	lib/vagrant-rackspace/action/create_server.rb
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants