Project

General

Profile

Download (1.05 KB) Statistics
| Branch: | Tag: | Revision:
object @host

attributes :name, :id, :ip, :environment_id, :last_report, :updated_at, :created_at, :mac,
:sp_mac, :sp_ip, :sp_name, :domain_id, :architecture_id, :operatingsystem_id,
:environment_id, :subnet_id, :sp_subnet_id, :ptable_id, :medium_id, :build,
:comment, :disk, :installed_at, :model_id, :hostgroup_id, :owner_id, :owner_type,
:enabled, :puppet_ca_proxy_id, :managed, :use_image, :image_file, :uuid, :compute_resource_id,
:puppet_proxy_id, :certname, :image_id, :created_at, :updated_at,
:last_compile, :puppet_status, :root_pass

attribute :organization_id if SETTINGS[:organizations_enabled]
attribute :location_id if SETTINGS[:locations_enabled]

node :environment do |host|
{:environment => {:id => host.environment_id, :name => host.environment_name}}
end

child :host_parameters do
attributes :id, :name, :value, :priority, :is_property, :reference_id, :created_at, :updated_at
end

node do |host|
{ :interfaces => partial("api/v1/interfaces/show", :object => host.interfaces) }
end
(3-3/3)