generate_install_config
Generate install-config.yaml for baremetal IPI clusters using cluster details, API and ingress VIPs, and host BMC configurations.
Instructions
Generate an install-config.yaml for baremetal IPI.
Args: cluster_name: Name of the cluster base_domain: Base domain (e.g., example.com) pull_secret: Pull secret content (JSON string) ssh_key: SSH public key content api_vip: API VIP address ingress_vip: Ingress VIP address hosts: List of baremetal hosts with BMC configuration machine_network_cidr: Machine network CIDR (default: 192.168.1.0/24) cluster_network_cidr: Cluster network CIDR (default: 10.128.0.0/14) service_network_cidr: Service network CIDR (default: 172.30.0.0/16) network_type: Network type (default: OVNKubernetes) control_plane_replicas: Number of master nodes (default: 3) worker_replicas: Number of worker nodes (default: 0)
Returns: Generated install-config as dictionary and YAML string
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cluster_name": "<cluster_name>",
"base_domain": "<base_domain>",
"pull_secret": "<pull_secret>",
"ssh_key": "<ssh_key>",
"api_vip": "<api_vip>",
"ingress_vip": "<ingress_vip>",
"hosts": "<hosts>"
},
"name": "generate_install_config"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hosts | Yes | ||
| api_vip | Yes | ||
| ssh_key | Yes | ||
| base_domain | Yes | ||
| ingress_vip | Yes | ||
| pull_secret | Yes | ||
| cluster_name | Yes | ||
| network_type | No | ||
| worker_replicas | No | ||
| cluster_network_cidr | No | ||
| machine_network_cidr | No | ||
| service_network_cidr | No | ||
| control_plane_replicas | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||