struct

Cl8r::Model::ResolvedNode

Inherits Struct < Value < Object

Represents a fully-resolved, immutable cluster node with non-nil FQDN and verified interfaces.

Constructors

new(hostname : String, fqdn : String, roles : Array(String), rack : String | Nil, rack_unit_start : Int32 | Nil, rack_unit_height : Int32, bmc_ip : String | Nil, bmc_mac : String | Nil, bmc_switch : String | Nil, bmc_port : String | Nil, disks : Array(DiskSpec), interfaces : Array(ResolvedInterface), sysctl : Hash(String, String), kind : String = "baremetal", host : String | Nil = nil, vcpus : Int32 | Nil = nil, memory_mb : Int32 | Nil = nil)

Initializes a ResolvedNode.

Source

Instance methods

baremetal?

Returns true if the node represents a physical bare-metal server.

Source
bmc_ip
Source
bmc_mac
Source
bmc_port
Source
bmc_switch
Source
boot_disk

Finds the dedicated OS boot disk specification, if present.

Source
container?

Returns true if the node represents a container.

Source
default_gateway_interface

Finds the interface hosting the default gateway binding.

Source
disks
Source
fqdn
Source
has_role?(role_name : String) : Bool

Returns true if the node is assigned the specified role (matching both '_' and '-' variants).

Source
host
Source
hostname
Source
hypervisor?

Returns true if the node is designated as a hypervisor.

Source
interfaces
Source
ipv4_for_plane(plane_name : String) : String | Nil

Resolves the IPv4 address assigned to this node on the specified network plane.

Source
ipv6_for_plane(plane_name : String) : String | Nil

Resolves the IPv6 address assigned to this node on the specified network plane.

Source
kind
Source
memory_mb
Source
primary_ipv4

Resolves the primary IPv4 address (from management or default gateway interface).

Source
rack
Source
rack_unit_height
Source
rack_unit_start
Source
roles
Source
sysctl
Source
vcpus
Source
virtual?

Returns true if the node represents a virtual machine.

Source