如何使用CLI将机器添加到具有IPMIfunction的MAAS

我想在MAAS中添加一台新机器,以便使用MAAS CLI进行调试和部署。 什么是MAAS CLI命令添加支持IPMI电源参数的新机器?

以下是如何添加计算机的示例:

maas maasadmin machines create \ hostname= \ fqdn=.maas \ mac_addresses= \ architecture=amd64 \ power_type=ipmi \ power_parameters_power_driver=LAN_2_0 \ power_parameters_power_user= \ power_parameters_power_pass= \ power_parameters_power_address= 

输入:

主机名 :无论您想为新机器添加标签。

mac_address :新计算机上适配器的mac地址,它将接收DHCP地址,然后返回MAAS以获取PXE映像。

ipmi_user / password :计算机控制器卡上的用户帐户(例如Dell iDRAC)

mgmt_ip_address :设备控制器卡的IP地址(例如Dell iDRAC)

以下是从MAAS api源代码中提取的,用于创建新计算机。

  """Create a new Machine. Adding a server to a MAAS puts it on a path that will wipe its disks and re-install its operating system, in the event that it PXE boots. In anonymous enlistment (and when the enlistment is done by a non-admin), the machine is held in the "New" state for approval by a MAAS admin. The minimum data required is: architecture= (eg "i386/generic") mac_addresses= (eg "aa:bb:cc:dd:ee:ff") :param architecture: A string containing the architecture type of the machine. (For example, "i386", or "amd64".) To determine the supported architectures, use the boot-resources endpoint. :type architecture: unicode :param min_hwe_kernel: A string containing the minimum kernel version allowed to be ran on this machine. :type min_hwe_kernel: unicode :param subarchitecture: A string containing the subarchitecture type of the machine. (For example, "generic" or "hwe-t".) To determine the supported subarchitectures, use the boot-resources endpoint. :type subarchitecture: unicode :param mac_addresses: One or more MAC addresses for the machine. To specify more than one MAC address, the parameter must be specified twice. (such as "machines new mac_addresses=01:02:03:04:05:06 mac_addresses=02:03:04:05:06:07") :type mac_addresses: unicode :param hostname: A hostname. If not given, one will be generated. :type hostname: unicode :param domain: The domain of the machine. If not given the default domain is used. :type domain: unicode :param power_type: A power management type, if applicable (eg "virsh", "ipmi"). :type power_type:unicode :param power_parameters_{param}: The parameter(s) for the power_type. Note that this is dynamic as the available parameters depend on the selected value of the Machine's power_type. `Power types`_ section for a list of the available power parameters for each power type. :type power_parameters_{param1}: unicode """ 
Interesting Posts