Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cobular/nomadtemplate
https://github.com/cobular/nomadtemplate
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cobular/nomadtemplate
- Owner: Cobular
- Created: 2023-08-14T06:13:28.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-08-14T06:18:52.000Z (over 1 year ago)
- Last Synced: 2024-05-02T06:18:03.224Z (8 months ago)
- Language: Rust
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nomad Template
Adds Tera templating support for Nomad jobfiles
## Usage
Put files in the templates folder that define macros. These will always be loaded into scope.
Then, import the files you want from the `.nomadtemplate` with the header `{% import "traefik.tera" as traefik %}` somewhere in the file. Do not specify the path to the file with the macros, just it's name.
Finally, call the templates as follows: `{{ traefik::private(service_name="umami", subdomain="umami") }}`
## Default templates
Currently, there are 2 templates - both for traefik, one to make a service public and one to make it private. They have one required parameter - the service name - and on 2 optionals - the subdomain, which if unspecificed will be the service name, and the base domain, which by default is one thing but can be overridden on a per-service basis.