HPE Nimble Storage Tech Blog
cancel
Showing results for 
Search instead for 
Did you mean: 

Introducing Nimble Playbook

kennedkj96

Taking some inspiration from Ansible I've put together a Ruby script that wraps the Bimbly REST client and digests yaml files to generate calls to the Nimble device. You don't need to understand Ruby to use the script, just yaml, and know that the first two levels of the yaml config are Array structures delimited by dashes.

How to Use (Ruby >= 2.0):

gem install bimbly

./nimble_playbook config.yml playbook.yml

And the rest is done by the script and library. The config.yml file is where the information about how to connect to a Nimble device are stored, and the playbook.yml file has all the calls and details that will go to the device.

Sample yaml Playbook

playbook_yaml.PNG

The script can be found here along with a README and some sample playbook/config files:

bimbly/bin at master · zumiez/bimbly · GitHub

I have also updated the Bimbly library to make it possible to generate Nimble playbooks. When using the library in irb, you can call 'save' rather than 'call' which will add the REST call to an array instead of sending it off to the device. You can see the REST calls as they are queued up with the method 'review'. Once you decide that you have all of the necessary calls queued up, you can then output them to a yaml file with 'create_playbook(filename)' and the library will write the yaml to disk to be used by the nimble_playbook script at any time.

I hope to add to the library here in the future that will help with generating templates, and have some sample templates ready as well.

Special thanks to Nimble SE Alexander Lawrence for suggesting yaml config files for use with the REST client and allowing me to test out my script.

About the Author

kennedkj96

Comments
amb154586

Great stuff.  Glad to see more automation tools added to the Nimble ecosphere!

Events
28-30 November
Madrid, Spain
Discover 2017 Madrid
Join us for Hewlett Packard Enterprise Discover 2017 Madrid, taking place 28-30 November at the Feria de Madrid Convention Center
Read more
See posts for dates
Online
HPE Webinars - 2017
Find out about this year's live broadcasts and on-demand webinars.
Read more
View all