参数

参数名字 描述
host_id
必填

主机 ID 或名称


Value:

Must be String

interface
必填

接口信息


Value:

Must be a Hash

interface[mac]
选填 , 允许空值

MAC address of interface. Required for managed interfaces on bare metal.


Value:

Must be String

interface[ip]
选填 , 允许空值

接口 IP 地址


Value:

Must be String

interface[type]
选填 , 允许空值

Interface type, e.g. bmc. Default is interface


Value:

Must be one of: interface, bmc, bond, bridge.

interface[name]
选填 , 允许空值

Interface's DNS name


Value:

Must be String

interface[subnet_id]
选填 , 允许空值

接口的 Foreman 子网 ID


Value:

Must be Fixnum

interface[domain_id]
选填 , 允许空值

Foreman domain ID of interface. Required for primary interfaces on managed hosts.


Value:

Must be Fixnum

interface[identifier]
选填 , 允许空值

设备标识符,例如:eth0 或者 eth1.1。


Value:

Must be String

interface[managed]
选填 , 允许空值

这个接口应由 DHCP 管理还是由 DNS 智能代理服务器管理?是否应在配置过程中对其进行配置?


Value:

Must be 'true' or 'false'

interface[primary]
选填 , 允许空值

Should this interface be used for constructing the FQDN of the host? Each managed hosts needs to have one primary interface.


Value:

Must be 'true' or 'false'

interface[provision]
选填 , 允许空值

Should this interface be used for TFTP of PXELinux (or SSH for image-based hosts)? Each managed hosts needs to have one provision interface.


Value:

Must be 'true' or 'false'

interface[username]
选填 , 允许空值

仅用于 BMC 接口


Value:

Must be String

interface[password]
选填 , 允许空值

仅用于 BMC 接口


Value:

Must be String

interface[provider]
选填 , 允许空值

结构提供者,例如 IPMI。仅用于 BMC 接口。


Value:

Must be one of: IPMI.

interface[virtual]
选填 , 允许空值

别名或 VLAN 失败


Value:

Must be 'true' or 'false'

interface[tag]
选填 , 允许空值

VLAN 标签,这个属性优先于子网 VLAN ID。仅用于虚拟接口。


Value:

Must be String

interface[attached_to]
选填 , 允许空值

这个接口所属接口识别符,例如:eth1。仅用于虚拟接口。


Value:

Must be String

interface[mode]
选填 , 允许空值

接口的捆绑模式,例如:balance-rr。仅用于捆绑接口。


Value:

Must be one of: balance-rr, active-backup, balance-xor, broadcast, 802.3ad, balance-tlb, balance-alb.

interface[attached_devices]
选填 , 允许空值

Identifiers of attached interfaces, e.g. `['eth1', 'eth2']`. For bond interfaces those are the slaves. Only for bond and bridges interfaces.


Value:

Must be an array of any type

interface[bond_options]
选填 , 允许空值

空间分割选项,例如:miimon=100。仅用于捆绑接口。


Value:

Must be String

interface[compute_attributes]
选填 , 允许空值

Additional compute resource specific attributes for the interface.


Value:

Must be Hash