martinb3 / chef-provisioning-rackspace-example

Examples of using Chef Provisioning on Rackspace with Fog driver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chef-provisioning-rackspace-example

Feel free to browse right to the create and destroy examples.

Configuring

You must configure some credentials and region in a knife.rb file like so:

driver 'fog:Rackspace'
driver_options :compute_options => {
  :rackspace_username => 'my_rackspace_user',
  :rackspace_api_key  => 'api_key_for_user',
  :rackspace_region => 'dfw' # could be 'org', 'iad', 'hkg', etc
}

NB: If you run into SSH key trouble, see this issue for some background of the chef-provisioning-fog driver and the fog library's different ways of bootstraping a server at Rackspace.

How to run

This example can be run using the following commands:

bundle exec chef-client -z recipes/create.rb
bundle exec chef-client -z recipes/destroy.rb

About

Examples of using Chef Provisioning on Rackspace with Fog driver


Languages

Language:Ruby 100.0%