This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"datastore"=> "TESTING", | |
"name"=> "Hard disk", | |
"size_gb"=> "20", | |
"_delete"=> "", | |
"thin" => false, | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"network"=> "QA", | |
"_delete"=> "", | |
"type"=> "VirtualVmxnet3" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default_datastore_filter datastore or not datastore.name == "TESTING" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "interfaces_attributes"=>{ | |
"new_interfaces"=>{ | |
"_destroy"=>"false", | |
"type"=>"Nic::Managed", | |
"mac"=>"FF:FF:FF:FF:FF:FF", | |
"name"=>if params[:host][:name] then params[:host][:name] else "" end + "-srv", | |
"domain_id"=>@domain.id, | |
"subnet_id"=> if @domain.subnets and @subnet and @domain.subnets.find_by_name(@subnet.name.split("-")[0]+"-Backend") then | |
@domain.subnets.find_by_name(@subnet.name.split("-")[0]+"-Backend").id | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ "compute_attributes" => { | |
"guest_id"=> "rhel6_64Guest", | |
"cluster"=> "ATIX_Test", | |
"path"=> "/Datencenter/axref200/vm", | |
"interfaces_attributes" => { | |
"0" => view_context.default_nic_attributes, | |
"1" => view_context.default_nic_attributes, | |
}, | |
"volumes_attributes"=> { | |
"0" => view_context.default_volume_attributes.merge(:size_gb => 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# You must restart the Rack server after changing either of these values | |
# because they are cached at startup. | |
# | |
:unattended: true | |
:login: true | |
:require_ssl: false | |
:locations_enabled: false | |
:organizations_enabled: false | |
#JSONP or "JSON with padding" is a complement to the base JSON data format. |