Skip to content
This repository has been archived by the owner on Apr 18, 2023. It is now read-only.

Latest commit

 

History

History
39 lines (30 loc) · 1.9 KB

README.md

File metadata and controls

39 lines (30 loc) · 1.9 KB

Libcloud examples for StackStorm

What is libcloud?

The ability to orchestrate against multiple clouds, public, private, hybrid.

How do I use this pack?

st2 run packs.install packs=libcloud_examples repo_url=https://github.com/tonybaloney/libcloud.extra subtree=true

What is in this pack?

Actions

deploy_to - Deploy an image to a particular cloud, choose the cloud as a parameters example_parallel_compute - A mistral workflow that deploys 2 VMs, adds A records to a DNS zone and adds them to a load balancer list_all_vms - Return a merged list of all the nodes across all configured clouds ![](https://raw.githubusercontent.com/tonybaloney/libcloud.extra/master/screenshots/list_all_vms.PNG example_scale_event - Scale out a cluster by a number of nodes and add them to a load balancer list_clouds - List the available clouds for a given type in the libcloud pack

Chatops aliases

Alias example

!allservers {{search=all}} - Get a list of all the servers (optional filter) !clouds {{type=all}} - List all the clouds !deploy_to {{cloud}} {{name}} {{image}} {{size}} - Deploy a node to a cloud !servers {{credentials}} - List servers in a cloud !containers {{credentials}} - List containers in a cloud !search hub {{search}} - Search the docker hub !"create container {{credentials}} {{name}} {{repository_name}} {{tag=latest}}" - Create a container on a cloud