GithubHelp home page GithubHelp logo

clicrudst2's Introduction

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.

####Installing

Install is straight forward.

  1. Login in to your ST2/BWC

  2. Go to the bash /opt/stackstorm/packs/ directory

  3. Execute ```bash git clone http://github.com/davidjohngee/clicrudST2.git

  4. On the ST2 client: bash st2 run packs.setup_virtualenv packs=clicrud

  5. On the ST2 client: bash st2 run packs.load register=clicrud

  6. Veryfiy the install with bash st2 action list --pack=default

You're good to go.

####Configuration file/s

bash config.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).

Last step for this part, copy this configuration file to the bash/config directory within bash/opt/stackstorm

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

####Rules

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

clicrudst2's People

Contributors

arsonistgopher avatar

Watchers

 avatar  avatar  avatar

clicrudst2's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.