Wheeler Law
4582a55680
Formatting
2018-11-05 12:30:41 -08:00
Wheeler Law
1fdce9dada
Tests are passing
2018-11-05 12:30:41 -08:00
Wheeler Law
de3bdec567
Working now
2018-11-05 12:30:41 -08:00
Wheeler Law
65c1b039cc
Added a sed function. Not quite working yet
2018-11-05 12:30:41 -08:00
Adrien Delorme
379336d9b2
make template/parse_test.go invisible to windows
2018-10-16 19:02:10 +02:00
Megan Marsh
174098ba29
implement vault template function for kv engine; add docs
2018-08-28 13:58:56 -07:00
Megan Marsh
dfaf624f4c
add template function allowing user to read keys from vault
...
update dependencies
add minimal docs
2018-08-28 11:23:47 -07:00
Olivier Ceyral
ee08365b02
Fix error message
2018-08-28 11:04:33 -07:00
Olivier Ceyral
a906d1d630
Add consul template function
2018-08-28 11:04:33 -07:00
Megan Marsh
6356078d19
add a few more tests to split function
2018-08-24 15:27:14 -07:00
Megan Marsh
8fbce8c40c
Merge pull request #6357 from ladar/master
...
Added a 'split' function to parse template variables.
2018-08-24 15:18:36 -07:00
Megan Marsh
8a6441a7a5
add tests for SensitiveVars
2018-08-21 10:28:22 -07:00
Megan Marsh
ff6a039d5b
replace scrubconfig with packer.LogSecretFilter.Set
...
filter winrm password from logs
Add new root-level packer template option, sensitive-variables, to tell us what user variables to mark sensitive.
2018-08-20 15:35:55 -07:00
Ladar Levison
8fee49ab9f
Added a 'split' function to parse template variables.
2018-06-08 00:41:57 -05:00
Krzysztof Wilczynski
7d80e37c14
Add new packer_version function.
...
Signed-off-by: Krzysztof Wilczynski <[email protected] >
2017-11-21 22:04:33 +01:00
Ben Root
5beca186d7
Unit test to verify that parsing fails on a certain kind of malformed JSON
2017-05-19 16:42:42 -04:00
Matthew Hooker
3fe1f20770
use json unmarshal instead of json decoder
...
this should let us catch json syntax errors.
2017-05-19 12:02:48 -07:00
Matthew Hooker
81522dced0
move packer to hashicorp
2017-04-04 13:39:01 -07:00
Matthew Hooker
d1b20b3d9c
remove a bunch of dead code.
...
https://github.com/dominikh/go-tools/tree/master/cmd/unused
2017-03-28 20:36:20 -07:00
Matthew Hooker
db49f10cad
update changelog
2017-02-03 23:15:18 -08:00
Matthew Hooker
5ea0eb0ec6
print time.Time with %v
2016-12-06 16:47:08 -08:00
Matthew Hooker
d920b3fbf4
run gofmt
2016-11-01 14:08:04 -07:00
Jake Champlin
aca4aed47c
Display better error messages on json.SyntaxError
...
Better display an error message on an encounter of a json.SyntaxError.
Rolls back the file position, to read the entire file, then steps
through the file reading a single byte at a time, populating lines until
encountering the syntax error. Then relays the offending line as well as
the previous line in the file to the user, also placing a `^` that
points the the offending column of the decoder error.
```
➤ packer validate template.json
Failed to parse template: Error parsing JSON: invalid character '"' after object key:value pair
At line 9, column 8 (offset 121):
8: "name": "vbox"
9: "
```
2016-02-10 14:52:26 -05:00
Mark Peek
71ed8e4a38
Fix #2742 : Include template line numbers on error
2015-10-25 12:28:06 -07:00
Mark Peek
5ef142c8bd
Fixes #2777 : isotime interpolation uses InitTime
2015-10-06 16:45:30 -07:00
Mitchell Hashimoto
fd2d44c212
helper/config: copy buildname/buildtype properly
2015-06-30 10:42:55 -07:00
Mitchell Hashimoto
723b91ccf3
Merge pull request #2232 from mitchellh/f-build-name
...
core: add build_name and build_type functions
2015-06-15 09:42:22 -07:00
Mitchell Hashimoto
d6f8ec9315
Merge pull request #2230 from mitchellh/f-json-comments
...
template: allow _ prefix to root level keys for comments [GH-2066]
2015-06-15 09:38:33 -07:00
Mitchell Hashimoto
1d94e0f8e3
template: abslute path for template path
2015-06-13 22:50:02 -07:00
Mitchell Hashimoto
f1b3c8a7ae
template/interpolate: build_name and build_type functions
2015-06-13 16:48:35 -04:00