Skip to content

Commit

Permalink
Re-introduce useful comments with better spacing. Fix camel casing of…
Browse files Browse the repository at this point in the history
… OpenStack.
  • Loading branch information
Dhiraj Hegde committed Sep 9, 2015
1 parent f23454e commit 32258a9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
36 changes: 18 additions & 18 deletions examples/openstack.rb
Expand Up @@ -8,16 +8,16 @@
:sudo => false,
:logfile => true,
:passthrough => {
:type => :openstack,
:openstack_auth_url => 'http://hostname.acme.com:5000/v2.0/tokens',
:openstack_username => 'some_user',
:openstack_tenant => 'tenant_id',
:user => 'ssh_user_id',
:keypair => 'openstack_key_name',
:image_ref => 'c0340afb-577d-1234-87b2-aebdd6d1838f',
:flavor_ref => '547d9af5-096c-1234-98df-7d23162556b8',
:openstack_api_key => 'secret_openstack_key',
:key => '/path/to/ssh_keys.pem',
:type => :openstack, # Indicate OpenStack provider
:openstack_auth_url => 'http://hostname.acme.com:5000/v2.0/tokens', # OpenStack API endpoint
:openstack_username => 'some_user', # OpenStack console username
:openstack_tenant => 'tenant_id', # Tenant ID
:user => 'ssh_user_id', # SSH login ID
:keypair => 'openstack_key_name', # Name of ssh keypair in OpenStack
:image_ref => 'c0340afb-577d-1234-87b2-aebdd6d1838f', # Image ID in OpenStack
:flavor_ref => '547d9af5-096c-1234-98df-7d23162556b8', # Flavor ID in OpenStack
:openstack_api_key => 'secret_openstack_key', # OpenStack console password
:key => '/path/to/ssh_keys.pem', # SSH key filename
},
:sshtunnel => false,
:verbosity => 1,
Expand All @@ -31,14 +31,14 @@
:sudo => false,
:logfile => true,
:passthrough => {
:type => :openstack,
:openstack_auth_url => 'http://hostname.acme.com:5000/v2.0/tokens',
:openstack_username => 'some_user',
:openstack_tenant => 'tenant_id',
:user => 'ssh_user_id',
:keypair => 'openstack_key_name',
:openstack_api_key => 'secret_openstack_key',
:instance => ostack.ostack_get_instance_id,
:type => :openstack, # Indicate OpenStack provider
:openstack_auth_url => 'http://hostname.acme.com:5000/v2.0/tokens', # OpenStack API endpoint
:openstack_username => 'some_user', # OpenStack console username
:openstack_tenant => 'tenant_id', # Tenant ID
:user => 'ssh_user_id', # SSH login ID
:keypair => 'openstack_key_name', # Name of ssh keypair in OpenStack
:openstack_api_key => 'secret_openstack_key', # OpenStack console password
:instance => ostack.ostack_get_instance_id, # ID of a running OpenStack instance.
},
:sshtunnel => false,
:verbosity => 1,
Expand Down
2 changes: 1 addition & 1 deletion lib/rouster.rb
Expand Up @@ -199,7 +199,7 @@ def initialize(opts = nil)

[:openstack_auth_url, :openstack_username, :openstack_tenant, :openstack_api_key,
:key ].each do |r|
raise ArgumentError.new(sprintf('Openstack passthrough requires %s specification', r)) if @passthrough[r].nil?
raise ArgumentError.new(sprintf('OpenStack passthrough requires %s specification', r)) if @passthrough[r].nil?
end

if @passthrough.has_key?(:image_ref)
Expand Down

0 comments on commit 32258a9

Please sign in to comment.