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.
Source Distribution
nomad-deploy-0.0.2.tar.gz
(3.2 kB
view hashes)
Built Distribution
Close
Hashes for nomad_deploy-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88a8fe20c567ccfe0baef3fdd7811ac7b29e0fb50d2c202749bb8f4fa80534ab |
|
MD5 | f6ae720dc815f8a52d95192eb7043c39 |
|
BLAKE2b-256 | 31b6cdca0361f8ce2f26d3723b7620b6b2063a3f8b69e40e7340bc914d4979bf |