Appendix B. Additional Host Parameters for Hammer CLI
This appendix provides some information on additional parameters for the hammer host create
command.
B.1. Common Interface Parameters
These parameters are used with the --interface
option for all provisioning types:
Parameter | Description | |
---|---|---|
mac | MAC address for the interface | |
ip | IP address for the interface | |
type |
The type of interface. For example: | |
name | The host name associated with this interface` | |
subnet_id | The subnet ID on the Satellite Server | |
domain_id | The domain ID on the Satellite Server | |
identifier |
The device identifier. For example: | |
managed |
Boolean for managed interfaces. Set to | |
primary |
Boolean for primary interfaces. Managed hosts needs to have one primary interface. Set to | |
provision |
Boolean for whether to provision on this interface. Set to | |
virtual |
Boolean for whether the interface is a VLAN interface. Set to |
Use the following parameters if virtual
is true
:
Parameter | Description | |
---|---|---|
tag | VLAN tag, this attribute has precedence over the subnet VLAN ID. Only for virtual interfaces. | |
attached_to |
Identifier of the interface to which this interface belongs. For example: |
Use the following parameters if type
is bond
:
Parameter | Description | |
---|---|---|
mode |
The bonding mode. One of | |
attached_devices |
Identifiers of slave interfaces. For example: | |
bond_options | Additional bonding options |
Use the following parameters if type
is bmc
:
Parameter | Description | |
---|---|---|
provider |
The BMC provider. Only | |
username | The username for the BMC device | |
password | The password for the BMC device |
B.2. EC2 Parameters
Available parameters for --compute-attributes
:
Parameter | Description | |
---|---|---|
flavor_id | The EC2 flavor to use | |
image_id | The AMI ID of the image to use | |
availability_zone | The availability zone within the region of the EC2 provider | |
security_group_ids | The IDs for security groups to use | |
managed_ip | To utilize a public or private IP |
B.3. Libvirt Parameters
Available keys for --compute-attributes
:
Parameter | Description | |
---|---|---|
cpus | Number of CPUs | |
memory | Amount of memory in bytes | |
start | Boolean to start the machine |
Available keys for --interface
:
Parameter | Description | |
---|---|---|
compute_type |
Either | |
compute_network / compute_bridge | Name of the network or physical interface | |
compute_model |
The interface model. One of |
Available keys for --volume
:
Parameter | Description | |
---|---|---|
pool_name | The storage pool to store the volume | |
capacity |
The capacity of the volume. For example: | |
format_type |
The disk type. Either |
B.4. Red Hat OpenStack Platform Parameters
Available keys for --compute-attributes
:
Parameter | Description | |
---|---|---|
flavor_ref | The flavor to use | |
image_ref | The image to use | |
tenant_id | The tenant to use | |
security_groups | A list of security groups to use | |
network | The network to connect the instance |
B.5. Red Hat Virtualization Parameters
Available keys for --compute-attributes
:
Parameter | Description | |
---|---|---|
cluster | The cluster ID to contain the host | |
template | The hardware profile to use | |
cores | The number of CPU cores to use | |
memory | The amount of memory in bytes | |
start | Boolean to start the machine |
Available keys for --interface
:
Parameter | Description | |
---|---|---|
compute_name |
The interface name. For example: | |
compute_network | The network in the cluster to use |
Available keys for --volume
:
Parameter | Description | |
---|---|---|
size_gb | Volume size in GB | |
storage_domain | The storage domain to use | |
bootable | Boolean to set the volume as bootable. Only one volume can be bootable |
B.6. VMware Interface Parameters
Available keys for --compute-attributes
:
Parameter | Description | |
---|---|---|
cpus | Number of CPUs for the host | |
corespersocket | Number of cores per CPU socket. Applicable to hosts using hardware versions less than v10. | |
memory_mb | Amount of memory in MB | |
cluster | Cluster ID for the host | |
path | Path to folder to organize the host | |
guest_id | Guest OS ID | |
scsi_controller_type | ID of the VMware controller | |
hardware_version | VMware hardware version ID | |
start | Boolean to start the machine |
Available keys for --interface
:
Parameter | Description | |
---|---|---|
compute_type |
Type of the network adapter. One of | |
compute_network | VMware network ID |
Available keys for --volume
:
Parameter | Description | |
---|---|---|
datastore | The datastore ID | |
name | The name of the volume | |
size_gb | The size in GB | |
thin | Boolean value to enable thin provisioning | |
eager_zero | Boolean value to enable Eager Zero thick provisioning |