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:
parent
45687f68c1
commit
c22c821adc
1 changed files with 4 additions and 0 deletions
|
@ -34,6 +34,8 @@ module Fog
|
||||||
attribute :root_device_id, :aliases => 'rootdeviceid'
|
attribute :root_device_id, :aliases => 'rootdeviceid'
|
||||||
attribute :root_device_type, :aliases => 'rootdevicetype'
|
attribute :root_device_type, :aliases => 'rootdevicetype'
|
||||||
attribute :group
|
attribute :group
|
||||||
|
attribute :key_name, :aliases => 'keypair'
|
||||||
|
attribute :user_data, :aliases => 'userdata'
|
||||||
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
|
attribute :security_group_list, :type => :array, :aliases => 'securitygroup'
|
||||||
attribute :nics, :type => :array, :aliases => 'nic'
|
attribute :nics, :type => :array, :aliases => 'nic'
|
||||||
|
|
||||||
|
@ -92,6 +94,8 @@ module Fog
|
||||||
'ipaddress' => ip_address,
|
'ipaddress' => ip_address,
|
||||||
'iptonetworklist' => ip_to_network_list,
|
'iptonetworklist' => ip_to_network_list,
|
||||||
'projectid' => project_id,
|
'projectid' => project_id,
|
||||||
|
'keypair' => key_name,
|
||||||
|
'userdata' => user_data,
|
||||||
}
|
}
|
||||||
|
|
||||||
options.merge!('networkids' => network_ids) if network_ids
|
options.merge!('networkids' => network_ids) if network_ids
|
||||||
|
|
Loading…
Reference in a new issue