Nomad plugin that enables deployment of Nomad jobs.
More...
Nomad plugin that enables deployment of Nomad jobs.
Example config:
- Version
- : "1.0" plugins:
nomad: jobs:
def etr.plugins.nomad.Plugin.__init__ |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
def etr.plugins.nomad.Plugin.__init__ |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
def etr.plugins.nomad.Plugin.add_options |
( |
|
parser | ) |
|
|
static |
def etr.plugins.nomad.Plugin.add_options |
( |
|
parser | ) |
|
|
static |
def etr.plugins.nomad.Plugin.setup |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
Deploy system under test.
- Convert HCL file to json,
- Add job
- If job already exist, fail.
- Start job
- Wait for job to stabilize
def etr.plugins.nomad.Plugin.setup |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
Deploy system under test.
- Convert HCL file to json,
- Add job
- If job already exist, fail.
- Start job
- Wait for job to stabilize
def etr.plugins.nomad.Plugin.teardown |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
Undeploy system under test.
def etr.plugins.nomad.Plugin.teardown |
( |
|
self, |
|
|
|
ctx |
|
) |
| |
Undeploy system under test.
string etr.plugins.nomad.Plugin.config_schema |
|
static |
Initial value:
3 additionalProperties: False
int etr.plugins.nomad.Plugin.order = 10000 |
|
static |
The documentation for this class was generated from the following files:
- etr/src/etr/plugins/nomad.py
- INTROOT/lib/python3.7/site-packages/etr/plugins/nomad.py