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
- Python 3.4
- Create Virtual Environment
pip install git+https://github.com/arago/python-arago-common.git#egg=arago-common-base
pip install git+https://github.com/arago/python-arago-pyactionhandler.git#egg=arago-pyactionhandler
- Install a list of requirements specified in a Requirements File.
- Package project
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
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