34 lines
907 B
Plaintext
34 lines
907 B
Plaintext
To enable ironic based inventory, add this to your deployment script:
|
|
|
|
export IRONIC_NODE_LIST=$(openstack --os-cloud=bifrost baremetal node list -f\
|
|
yaml --noindent --fields name instance_info)
|
|
|
|
The output should look like this:
|
|
- Instance Info:
|
|
configdrive: '******'
|
|
image_checksum: ee1eca47dc88f4879d8a229cc70a07c6
|
|
image_disk_format: qcow2
|
|
image_source: http://10.20.0.2:8080/deployment_image.qcow2
|
|
image_url: '******'
|
|
ipv4_address: 10.20.0.98
|
|
root_gb: 10
|
|
tags:
|
|
- kube-etcd
|
|
- kube-node
|
|
Name: host1
|
|
- Instance Info:
|
|
configdrive: '******'
|
|
image_checksum: ee1eca47dc88f4879d8a229cc70a07c6
|
|
image_disk_format: qcow2
|
|
image_source: http://10.20.0.2:8080/deployment_image.qcow2
|
|
image_url: '******'
|
|
ipv4_address: 10.20.0.66
|
|
root_gb: 10
|
|
tags:
|
|
- k8s_master
|
|
- k8s_etcd
|
|
Name: host2
|
|
|
|
|
|
Note: Replace --os-cloud with your environment.
|