1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[Cloudstack|Compute] Add support for keypair and userdata when creating cloudstack vms

This commit is contained in:
Christophe Roux 2013-08-07 11:28:01 +02:00
parent 45687f68c1
commit c22c821adc

View file

@ -34,6 +34,8 @@ module Fog
attribute :root_device_id, :aliases => 'rootdeviceid'
attribute :root_device_type, :aliases => 'rootdevicetype'
attribute :group
attribute :key_name, :aliases => 'keypair'
attribute :user_data, :aliases => 'userdata'
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
attribute :nics, :type => :array, :aliases => 'nic'
@ -92,6 +94,8 @@ module Fog
'ipaddress' => ip_address,
'iptonetworklist' => ip_to_network_list,
'projectid' => project_id,
'keypair' => key_name,
'userdata' => user_data,
}
options.merge!('networkids' => network_ids) if network_ids