Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

A small Python 3 utiility to render jinja 2 tempaltes and schedule a Nomad deployment.

Project description

# Nomad Deploy

A Python 3 script that renders Jinja template and schedules a new job on Nomad

## Building

Easy! Run:

python setup.py sdist bdist_wheel && twine upload dist/*

You have to be logged in and have the correct access right to nomad-deploy in pip.

## Installing

Even easier:

pip install nomad-deploy

Now nomad-deploy command is available system-wide.

## Running

After installing nomad-deploy with pip, running it is easy

nomad-deploy –varFile variables.yml template.nomad

Available keys: * –var “FOO=BAR” - set variable value, can be specified more than once to set more variables * –varFile “variables.yml” - load variables from a Yaml file * –render - output resulting template to stdout * –dry - do not run the job, only test if resources can be allocated * –recursive - if you’re using variables in the varFile, you can recursively re-render the template until there are no more substitutions you can make; this will break control statements in template file

Project details


Download files

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

Files for nomad-deploy, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size nomad_deploy-1.0.1-py3-none-any.whl (5.1 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size nomad-deploy-1.0.1.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page