SoftLayer Knife
A Chef Knife plugin for launching, bootstrapping, and managing compute instances in the IBM SoftLayer cloud.



Add your SoftLayer username and API key to your knife.rb file.

log_level                :info
log_location             STDOUT
node_name                'node'
client_key               '/path/to/key.pem'
validation_client_name   'some-validator'
validation_key           '/path/to/validator.pem'
chef_server_url          ''
syntax_check_cache_path  '/path/to/syntax_check_cache'
knife[:softlayer_username] = "<SOFTLAYER USERNAME>"
knife[:softlayer_api_key]  = "<SOFTLAYER API KEY>"


See knife softlayer --help for more information.


# look at some options
user@local> knife softlayer flavor list [--all]
# the minimum number of pieces of flare
user@local> knife softlayer server create --hostname test --domain --flavor tiny


being sort of specific about things

user@local> knife softlayer server create -H test -D
–block-storage 0:25,2:100,5:1000 \ # device:GB, device:GB, … –network-interface-speed 1000
–cores 8
–ram 49152
–os-code REDHAT_6_64
–datacenter ams01
–node-name random-node-name
–run-list ‘recipe[apt],recipe[git],recipe[rbenv],recipe[memcached],recipe[redis]’