Skip to content

arago/python-hiro-stonebranch-actionhandler

Repository files navigation

Python 3 HIRO Stonebranch action handler

An action handler implementation for HIRO using the REST interface of Stonebranch.

Currently implemented interfaces

  • Create a Linux/Unix Task
  • Launch a Task
  • Retrieve Task Instance Status
  • Retrieve Task Instance Output
  • Delete a Task

New Tasks can be setup against an agent and/or agent-cluster or broadcast

Getting started

Building with pex

virtualenv pex
./pex/bin/pip install pex

virtualenv build
./build/bin/pip install --upgrade pip wheel
./build/bin/pip wheel --wheel-dir=./wheelhouse --process-dependency-links gevent==1.2.2 git+https://github.com/arago/python-hiro-stonebranch-actionhandler.git#egg=arago-hiro-actionhandler-stonebranch

./pex/bin/pex "--python-shebang=/usr/bin/env python3" --no-index --find-links=wheelhouse arago-hiro-actionhandler-stonebranch --entry-point=arago.hiro.actionhandler.plugin.stonebranch.StonebranchActionHandlerDaemon:StonebranchActionHandlerDaemon.main --output-file=stonebranch-actionhandler.pex

Test

PYTHONPATH="$(pwd):$PYTHONPATH" venv/bin/python3 bin/hiro-stonebranch-actionhandler.py --handler-config-file=ah_test/stonebranch-actionhandler.conf --logging-config-file=ah_test/stonebranch-actionhandler-log.conf --instances-config-file=ah_test/stonebranch-instances.conf --debug start
venv/bin/ah-client.py -u tcp://localhost:7292 --parameter instance = example --parameter agent = 'LINUX-AGNT0001' --parameter command = 'curl --help' a::b::c::d

About

Stonebranch ActionHandler for HIRO

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •