Skip to content
This repository was archived by the owner on Nov 18, 2026. It is now read-only.

Commit 3e65564

Browse files
authored
Merge pull request #262 from jrasell/docs-recent-vault/tmpl-update
Add doc updates for Vault deploy flags and fileContents tmpl func.
2 parents ed67d3b + 622d734 commit 3e65564

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎docs/commands.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ Levant supports a number of command line arguments which provide control over th
2626

2727
* **-var-file** (string: "") The variables file to render the template with. This flag can be specified multiple times to supply multiple variables files.
2828

29+
* **-vault** (bool: false) This flag makes Levant load the Vault token from the current ENV. It can not be used at the same time as the `vault-token` flag.
30+
31+
* **-vault-token** (string: "") The vault token used to deploy the application to nomad with Vault support. It can not be used at the same time as the `vault` flag.
32+
2933
The `deploy` command also supports passing variables individually on the command line. Multiple commands can be passed in the format of `-var 'key=value'`. Variables passed via the command line take precedence over the same variable declared within a passed variable file.
3034

3135
Full example:

‎docs/templates.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,30 @@ foo
160160
```
161161

162162

163+
#### fileContents
164+
165+
Reads the entire contents of the specified file and adds it to the template.
166+
167+
Example file contents:
168+
```
169+
---
170+
yaml:
171+
- is: everywhere
172+
```
173+
174+
Example job template:
175+
```
176+
[[ fileContents "/etc/myapp/config" ]]
177+
```
178+
179+
Render:
180+
```
181+
---
182+
yaml:
183+
- is: everywhere
184+
```
185+
186+
163187
#### loop
164188

165189
Accepts varying parameters and differs its behavior based on those parameters as detailed below.

0 commit comments

Comments
 (0)
⌂ 换网址