Skip to content

RHInception/re-worker-func

Repository files navigation

re-worker-func

Func Worker for Release Engine for our new release engine hotness

Build Status

Unittests

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

Configuration

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.

Use as an Engine Step

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"]
            }
        }
    ]
}

About

Shell Command Execution Worker for Release Engine

Resources

License

Stars

Watchers

Forks

Packages

No packages published