mitchellh / vagrant-rackspace

Use Vagrant to manage Rackspace Cloud instances.
MIT License
235 stars 155 forks source link

rackspace_region has to be set to avoid warnings #88

Closed berendt closed 10 years ago

berendt commented 10 years ago

Set rackspace_region to :dfw by default.

[fog][DEPRECATION] Default region support will be
removed in an upcoming release. Please switch to
manually setting your endpoint. This requires
settng the :rackspace_region option
krames commented 10 years ago

@berendt Thanks for PR!

I would love to accept this, but unfortunately Rackspace is removing all default endpoints from their officially supported tools and SDKs. The concern is that a customer might unknowingly store their data in a remote data center incurring hefty data transfer fees and/or potentially use a region that has data privacy policies that are in conflict of their business location. Removing this default makes the customer aware where their data is being stored.

maxlinc commented 10 years ago

@berendt A global default doesn't make sense anymore, but Vagrant does let you set per-user defaults. So if you have a lot of Vagrant projects with similar settings you can look at the "Load order and merging" section in the Vagrantfile documentation.

Keep in mind, though, that setting required configuration via user-specific defaults file might cause confusion if you share your Vagrantfile with others. I've been using environment variables for required config (like username/key/region) and ~/.vagrant.d/Vagrantfile for optional configuration like vagrant-cachier.