Func Worker for Release Engine for our new release engine hotness
Run make ci
from the main directory to execute unittests
(including pep8 and
pyflakes)
You'll need some dependencies fulfilled first:
libffi-devel
openssl-libs
openssl-devel
The configuration file uses the following pattern in JSON format:
{
"FUNC_MODULE": {
"COMMAND_1": ["REQUIRED", "PARAMETERS"],
"COMMAND_2": ["ONE_ITEM"],
"COMMAND_N": []
}
Example:
{
"yumcmd": {
"install": ["package"],
"remove": ["package"],
"update": []
}
}
Note: See Func - Module List for more information.
TODO: Cut over to RTD when ready.
For documentation see the Read The Docs documentation.
After steps
below you can see examples of how to incorporate a
funcworker configured to with the service
command, and one
configured with the yumcmd
command.
{
"project": "example project",
"ownership": {
"id": "Some team",
"contact": "someteam@example.com"
},
"steps": [
{
"name": "stop foo service",
"plugin": "funcworker",
"parameters": {
"command": "service",
"subcommand": "stop",
"service": "megafrobber",
"hosts": ["127.0.0.1"]
}
},
{
"name": "foo",
"plugin": "funcworker",
"parameters": {
"command": "yumcmd",
"subcommand": "install",
"package": "xemacs",
"hosts": ["127.0.0.1"]
}
}
]
}