Skip to content
This repository has been archived by the owner on Sep 26, 2018. It is now read-only.

Latest commit

 

History

History

clicrud

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Readme

This pack allows you to use CLICRUD effectively within StackStorm or the Brocade Workflow Composer.

This pack contains three actions:

- ops_command
- config_command
- chain_remediate

####ops_command

Allows you to run an operational command on a Brocade ICX, MLX or VDX using CLI.

####config_command

Allows you to run a comma separated LIST of configuration commands. The real world rarely leads to running a single command so this action allows you to create a list of them which will be pushed. This could also mean a comma separated template, with the comma allowing each input to be treated as a line.

####chain_remediate

This simple action-chain takes input in the form of an alert (from another open source project called GoPE: http://github.com/davidjohngee/gope), alerts a Slack channel, attempts autoremediation with a single or list of commands, then updates slack users.

Have a play!

####CLICRUD

If you are not familiar with CLICRUD, check out http://github.com/davidjohngee/clicrud for the latest or install using PyPi:

pip install clicrud

This dependency will automatically be installed on ST2/BWC so don't worry about that! You do not have to install this to get the clicrudST2 integration working.

####Configuration file/s

clicrud.yaml

This file hides the connectivity method and credentials from the actual composer itself. This is to limit what can change in the workflows/rules.

Currently the connectivity method is also in the configuration file. This in the future may change. Everyone uses SSH right? (Just nod).

Create the file clicrud.yaml in /opt/stackstorm/configs. It should contain something like this:

  ---
  username: "admin"
  password: "password"
  enable:   "password"
  method:    "ssh"

You can also use dynamic datastore values.

####Rules

So you can get going quickly with The ST2 CLICRUD integration, there are some existing rules. Take a look at them!