The job server component of mProv
Project description
mProv Job Server
The mProv Job server is the work horse behind the scenes of the mPCC. The job server connects to the mPCC and will run jobs that are queued on the mPCC. The job server is also responsible for serving images created through the mPCC, as well as running scripts on the images and hosts when they come up.
Requirements
The mProv Job server requires python 3.8 and above. It also requires that the packages in the requirements.txt
be installed. As always, you can accomplish this with the following pip command: pip install -r requirements.txt
Setup
You will need to create an API key in the mPCC for the job server. Once you have the api key, you will want to add that key to the jobserver.yaml
file. There should be an example in there already, it will not work. You must replace it. While you are in there, you will want to setup the mprovURL
entry to point to your mPCC instance. After that, you can enable/disable whatever jobmodules you want this job server to run by uncomment/commenting the lines that describe the jobmodules.
Arguments
Job server takes a few command line arguments. Global arguments are
- -r Runs the jobserver in 'runonce' mode. The job server will run any of the job modules listed once then exit.
- -d Tells the job server not to register with the mPCC. This is useful only when running the
script-runner
module to run post-boot or image-gen scripts.
Some plugins also use commandline arguments.
script-runner args
The script-runner
job module will take the following arguments
- -i This is the id of the system image you are going to run scripts against. Mutually exclusive with -s
- -s The host name of the system you are running the scripts against.
- -b Runs scripts in post-boot mode.
- -r (Global Option) The script-runner must be run in
runonce
mode only. It is probably wise to also pass -d - -d (Global Option) The script-runner will not register as a job server with mPCC
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mprov_jobserver-0.0.36.tar.gz
.
File metadata
- Download URL: mprov_jobserver-0.0.36.tar.gz
- Upload date:
- Size: 41.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60fbe63770aa8ec10cafc6b01fef97c18476090b9890f16d1b3a17303cba971 |
|
MD5 | 6a63a4b853782ff3b3710ec42cb83d34 |
|
BLAKE2b-256 | e55705ddcab04a8adc76f0f80549e02f69518c6331391e1155baf2e8d548d8d2 |
File details
Details for the file mprov_jobserver-0.0.36-py3-none-any.whl
.
File metadata
- Download URL: mprov_jobserver-0.0.36-py3-none-any.whl
- Upload date:
- Size: 56.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7d8dd8f7b81391ba89e52ce338920a79470cc9dbb9753487282f0627b3c4a6d4 |
|
MD5 | 970f0fd2528ca380e0b4e0e2437f9e10 |
|
BLAKE2b-256 | ef70d01883d76a7bad0494ede0dc1038f5152eb99acc5d18413f1a69b713c4bb |