Skip to main content

The job server component of mProv

Project description

mProv Job Server

Build Status Latest Version Supported Python Wheel Status License

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

  • MUST BE INSTALLED AS ROOT
  • The mProv Job server requires python 3.8 and above.

Installation

The best way to install the job server is to run:

wget https://raw.githubusercontent.com/mprov-ng/mprov_jobserver/main/install_mprov_jobserver.sh -O - | bash

This will download and run the jobserver installation script from this repo.

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.

do not use localhost use IP or internal name

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mprov_jobserver-0.0.45.tar.gz (43.8 kB view details)

Uploaded Source

Built Distribution

mprov_jobserver-0.0.45-py3-none-any.whl (59.0 kB view details)

Uploaded Python 3

File details

Details for the file mprov_jobserver-0.0.45.tar.gz.

File metadata

  • Download URL: mprov_jobserver-0.0.45.tar.gz
  • Upload date:
  • Size: 43.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for mprov_jobserver-0.0.45.tar.gz
Algorithm Hash digest
SHA256 ba67999e63805ad40f4f28d3984240791b0b38ebf17d49f3d058b78ce4c23fd0
MD5 e03d085a4e2a17b659d308678428924c
BLAKE2b-256 d2101cbc4b81433279281a44b4eadc750d3dc49c78c0d3fe417066095693c968

See more details on using hashes here.

File details

Details for the file mprov_jobserver-0.0.45-py3-none-any.whl.

File metadata

File hashes

Hashes for mprov_jobserver-0.0.45-py3-none-any.whl
Algorithm Hash digest
SHA256 b015ca4f74c7d3666b61d03d07da27f7aeab327dd127eac0d87b8b57cfca1601
MD5 7c09d5a4081b491df34fec58673d673a
BLAKE2b-256 99b612a473217b36c26a49114d606322fb77e587735ad7e4e27216d0d74207f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page