Skip to content

stackhpc/mungetout

Repository files navigation

mungetout

https://travis-ci.com/stackhpc/mungetout.svg?branch=master

Convert from Ironic Inspector introspection format to cardiff format. Now you can mungetout...

Usage

Requires the python hardware package to be installed.

pip install git+https://github.com/stackhpc/mungetout
mkdir working-dir && cd working-dir
m2-gen
hardware-cardiff -I ipmi -p 'results/extra_hardware_kef1i-a00*'

It can be useful to limit the number of nodes for debugging purposes:

m2-gen --limit 4 -vv

Examples

Running a script on some Ironic nodes:

openstack baremetal node list -f json --long | m2-filter 192.168.0.1-192.168.0.54 | m2-sink-run ./onboard.sh '{{ item.UUID }}'

List node names:

openstack baremetal node list -f json --long | m2-filter 192.168.0.1-192.168.0.6 | jq -r '.[] | ."Name"' | sort

Rename nodes:

cat asset-map
"node1","192.168.0.1"
"node2","192.168.0.2"
openstack baremetal node list -f json --long | m2-filter 192.168.0.1-192.168.0.2 | m2-sink-ironic-name asset-map

Note

This project has been set up using PyScaffold 2.5.11. For details and usage information on PyScaffold see http://pyscaffold.readthedocs.org/.

About

Convert from Ironic Inspector introspection format to cardiff format

Resources

License

Stars

1 star

Watchers

2 watching

Forks

Packages

 
 
 

Contributors