This is to do a JSON-Yaml conversion for system data downloaded from OneView. Converting to an usable playbook.
- Python2
- Python-pip package manager
- virtualenv
NOTE: Both Python3 and Python3-pip can be installed from the Linux OS pakcage manager, such as apt-get and yum. Virtualenv can be installed from Pip.
NOTE: According to the Control Machine Requirements section in the Ansible documentation, Window is not supported.
- In terminal, git clone this repo.
$ git clone [email protected]:jih-tsen-nat-lin/oneview-ansible-openshift-integrations.git
- Create a Python 2.7 virtual environment.
$ virtualenv project-env --python /bin/bin/python
- Activate the environment, and then pip install the dependencies from the requirments file.
$ source project-env/bin/activate
$ pip install -r requirements.txt
- To run the code:
(project-env)$ python main.py