Book Image

Practical OneOps

By : Nilesh Nimkar
Book Image

Practical OneOps

By: Nilesh Nimkar

Overview of this book

Walmart’s OneOps is an open source DevOps platform that is used for cloud and application lifecycle management. It can manage critical and complex application workload on any multi cloud-based infrastructure and revolutionizes the way administrators, developers, and engineers develop and launch new products. This practical book focuses on real-life cases and hands-on scenarios to develop, launch, and test your applications faster, so you can implement the DevOps process using OneOps. You will be exposed to the fundamental aspects of OneOps starting with installing, deploying, and configuring OneOps in a test environment, which will also come in handy later for development and debugging. You will also learn about design and architecture, and work through steps to perform enterprise level deployment. You will understand the initial setup of OneOps such as creating organization, teams, and access management. Finally, you will be taught how to configure, repair, scale, and extend applications across various cloud platforms.
Table of Contents (18 chapters)
Practical OneOps
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface

Connecting to the REST API using Ruby


The beauty of RESTful services and using JSON or XML to communicate over the web is that you can use any modern language (and many not-so-modern languages) to quickly and efficiently talk to OneOps. Since, so far, all our coding has been in Ruby, or to be specific in Chef, we will be using Ruby as an example language for this chapter. However, since the resources are idempotent, the language itself rarely matters. Before we can start using Ruby though, let's make sure that the appropriate dependencies are satisfied. Since we will be building our own custom REST client, we will be using a Ruby gem named rest-client. You can install it using the command:

gem install rest-client

Also, make sure that gem json is installed. You can install it by running the following command:

gem install json

For rest-client, you should have MRI Ruby 2.0 or higher installed. If you are trying this from a OneOps instance, then Ruby 2.0 or higher should already be installed...