This page is for a staff meeting presentation. Usage instructions can be found on the project repository
.
Problem
- ~140 nodes of the tembo cluster need to be added to inventory
- Nodes are not all identical, minor subtleties
- Helpful if barcode were written into BMC
Solution
Automate the one time task with a general purpose script in hope of future usefulness
Tech Stack
- Python chosen as scripting language
- I am familiar with it
- High level features available ex. JSON Parsing
- Salt Stack
- Used to run script to collect information from all nodes (Salt selector "*")
- Can be optionally used to associate barcodes with hostnames
- lshw, lscpu
- Simple tools to get system specs with JSON output
- Available though most package managers
- Input and output as CSV files
- Easy to work with in python
- Compatible with CSCF inventory
Usage
Repo Readme
Fill out example_data.csv
Links
Git Repo
RT
Topic revision: r3 - 2019-10-24
- HaoYun