Add 'create_inventory_context' command

The command 'create_inventory_context' can be used to dump all the
nodes from reclass inventory, they names from recalss.storage,
and any additional keys from nodes if needed, for example:

$ reclass-create-inventory-context \
    -d mcp11-ovs-dpdk.local \
    parameters.linux.network.interface \
    parameters.linux.storage
6 files changed
tree: abdda837cf990a7f6e2ced82fcbe05cbf9874655
  1. reclass_tools/
  2. .gitignore
  3. .pylintrc
  4. .pylintrc_gerrit
  5. bindep.txt
  6. LICENSE
  7. README.md
  8. requirements.txt
  9. run_tests.sh
  10. setup.cfg
  11. setup.py
  12. test-requirements.txt
  13. tox.ini
README.md

reclass-tools

QA tools for manipulating reclass models

Install:

apt-get install python-virtualenv python-pip build-essential python-dev libssl-dev
virtualenv venv-reclass-tools
source venv-reclass-tools/bin/activate
pip install https://github.com/dis-xcom/reclass-tools

Usage: