Cl8r::Model::Node
Inherits YAML::Serializable < Reference < Object
Models physical and virtual cluster nodes, multi-role classification, rack coordinates, and hardware layout.
Constructors
new(hostname : String = "", kind : String = "baremetal", host : String | Nil = nil, vcpus : Int32 | Nil = nil, memory_mb : Int32 | Nil = nil, roles : Array(String) = [] of String, rack : String | Nil = nil, rack_unit_start : Int32 | Nil = nil, rack_unit_height : Int32 = 1, bmc_ip : String | Nil = nil, bmc_mac : String | Nil = nil, bmc_switch : String | Nil = nil, bmc_port : String | Nil = nil, disks : Array(DiskSpec) = [] of DiskSpec, interfaces : Array(Interface) = [] of Interface, sysctl : Hash(String, String) = {} of String => String)
Initializes a Node with hardware specifications and network interfaces.
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)
SourceInstance methods
bmc_ip
Sourcebmc_mac
Sourcebmc_port
Sourcebmc_switch
Sourcedisks
SourceReturns true if the node is assigned the specified role (matching both '_' and '-' variants).
host
Sourcehostname
Sourceinterfaces
Sourcekind
Sourcememory_mb
Sourcerack
Sourcerack_unit_height
Sourcerack_unit_start
Sourceroles
Sourcesysctl
Sourcevcpus
Source