Skip to content

nlin24/json-yaml-conversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Summary

This is to do a JSON-Yaml conversion for system data downloaded from OneView. Converting to an usable playbook.

Requirements:

  • 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.

Setting up the environment

NOTE: According to the Control Machine Requirements section in the Ansible documentation, Window is not supported.

  1. In terminal, git clone this repo.
$ git clone [email protected]:jih-tsen-nat-lin/oneview-ansible-openshift-integrations.git
  1. Create a Python 2.7 virtual environment.
$ virtualenv project-env --python /bin/bin/python
  1. Activate the environment, and then pip install the dependencies from the requirments file.
$ source project-env/bin/activate
$ pip install -r requirements.txt
  1. To run the code:
(project-env)$ python main.py

Resources

About

Just a demo showing JSON to Yaml data conversion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages