Skip to content

Commit

Permalink
Merge pull request hashicorp#262 from jrasell/docs-recent-vault/tmpl-…
Browse files Browse the repository at this point in the history
…update

Add doc updates for Vault deploy flags and fileContents tmpl func.
  • Loading branch information
jrasell authored Dec 20, 2018
2 parents ed67d3b + 622d734 commit 3e65564
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Levant supports a number of command line arguments which provide control over th

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

* **-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.

* **-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.

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.

Full example:
Expand Down
24 changes: 24 additions & 0 deletions docs/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,30 @@ foo
```


#### fileContents

Reads the entire contents of the specified file and adds it to the template.

Example file contents:
```
---
yaml:
- is: everywhere
```

Example job template:
```
[[ fileContents "/etc/myapp/config" ]]
```

Render:
```
---
yaml:
- is: everywhere
```


#### loop

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

0 comments on commit 3e65564

Please sign in to comment.