mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Merge pull request #1599 from rackspace/bootstrap_doc
[rackspace|compute_v2] fixing bootstrap example
This commit is contained in:
commit
45efc81bfe
1 changed files with 4 additions and 7 deletions
|
@ -22,14 +22,11 @@ module Fog
|
|||
# @note This method is incompatible with Cloud Servers utlizing RackConnect. RackConnect users
|
||||
# should use server personalization to install keys. Please see Server#personality for more information.
|
||||
# @example
|
||||
# service = Fog::Compute.new(:provider => 'rackspace',
|
||||
# :version => :v2,
|
||||
# service.servers.bootstrap :name => 'bootstrap-server',
|
||||
# :flavor_id => service.flavors.first.id,
|
||||
# :image_id => service.images.find {|img| img.name =~ /Ubuntu/}.id,
|
||||
# :public_key_path => '~/.ssh/fog_rsa.pub',
|
||||
# :private_key_path => '~/.ssh/fog_rsa')
|
||||
#
|
||||
# service.servers.bootstrap :name => 'bootstap-server',
|
||||
# :flavor_id => service.flavors.first.id
|
||||
# :image_id => service.servers.first.id
|
||||
# :private_key_path => '~/.ssh/fog_rsa'
|
||||
#
|
||||
def bootstrap(new_attributes = {})
|
||||
server = create(new_attributes)
|
||||
|
|
Loading…
Reference in a new issue