Commit Graph

602 Commits (551eedcf2616376b00d7da170b09f682bbfa3445)

Author SHA1 Message Date
Jeff Zohrab 33d30761dd Add hint to download modules for new users.
10 years ago
Paul Hinze 9a00675262 Merge pull request #5026 from hashicorp/phinze/destroy-node-copies
10 years ago
Paul Hinze 3f72837f4b core: Make copies when creating destroy nodes
10 years ago
Radek Simko 4edf782260 Merge pull request #4854 from jfromaniello/add_signum_interpolation
10 years ago
Mitchell Hashimoto 5f3de02fa9 remove config/lang, use hashicorp/hil
10 years ago
Radek Simko ecedcd0032 config: Add base64sha256() function
10 years ago
Colin Hebert 61a40dce13 Update the test file
10 years ago
Colin Hebert d92d205dd9 rename trim to trimspace
10 years ago
Colin Hebert d45b7b2ddc Fix name from strip to trim
10 years ago
Colin Hebert f5074cd521 Add the trim() interpolation function
10 years ago
José F. Romaniello c8795b8565 Add signum interpolation function
10 years ago
James Nugent 3bdd1ac8b3 core: Display invalid type in error message
10 years ago
James Nugent cb6cb8b96a core: Support explicit variable type declaration
10 years ago
Paul Hinze 87a9701f91 config: validation error when output is missing value field
10 years ago
Paul Hinze 47b521ebaf Merge pull request #4745 from hashicorp/b-lifecycle-keys
10 years ago
Paul Hinze 911575b7d6 Merge pull request #4747 from hashicorp/b-escaped
10 years ago
Mitchell Hashimoto 693736b52a config: fix tests
10 years ago
Mitchell Hashimoto f223be15cd config: eval HEL as long as the result changes [GH-2909]
10 years ago
Mitchell Hashimoto 8e7b0d90e3 config: detect provisioner-only resource in JSON and error [GH-4385]
10 years ago
Mitchell Hashimoto 99fbb91ba2 config: validate lifecycle keys [GH-4413]
10 years ago
Matt Moyer c17a6ceb2a Add a sha256(...) interpolation function.
10 years ago
Paul Hinze 0739cf2348 provider/template: fix race causing panic in template_file
10 years ago
Joseph Kordish e1b62c76ad add sha1 interpolation
10 years ago
Jesse Szwedko 41f9ebc667 Add support for unary operators + and -
11 years ago
Paul Hinze b6626eed57 config: friendlier error message on resource arity mismatch
11 years ago
James Nugent 5ea25363a1 Add regression test for #4069
11 years ago
Paul Hinze d90eb2d88e config: test replicating #4079
11 years ago
James Nugent 7f5f8d300d Add failing test replicating #4065
11 years ago
Paul Hinze afb5136ac2 Merge pull request #3986 from hashicorp/phinze/hcl-escaped-quotes
11 years ago
Paul Hinze 15e7927009 config: test covering escaped quotes syntax error
11 years ago
James Nugent 6ae3218f8a Add failing tests for JSON configuration parsing
11 years ago
Paul Hinze 928f534cfc template_file: source contents instead of path
11 years ago
James Nugent f4164b5322 Add resource with heredoc to config load tests
11 years ago
Mitchell Hashimoto deb17b90eb Merge pull request #3813 from hashicorp/b-new-hcl
11 years ago
Martin Atkins 988baa584b Merge #3814: 'coalesce' interpolation func
11 years ago
James Nugent f4c03ec2a6 Reflect new comment format in stringer.go
11 years ago
Matt Morrison 6ecec7fe83 Add coalesce func
11 years ago
Mitchell Hashimoto 13c5fdb154 config: remove debug line
11 years ago
Mitchell Hashimoto 02f512d4bd config: new HCL API
11 years ago
Paul Hinze c56245ce34 Merge pull request #2973 from bobtfish/length_empty_split_zero
11 years ago
Paul Hinze af04321723 config: return to the go1.5 generated lang/y.go
11 years ago
Tomas Doran 96275ee66a Add an explicit test for PR #2973
11 years ago
Martin Atkins ef161e1c1b Various interpolation functions for CIDR range manipulation.
11 years ago
Matt Morrison cccc5d03e3 Add lower / upper interpolation functions
11 years ago
Paul Hinze 77847b1572 config/lang: restore go1.4.3 generated code
11 years ago
Mitchell Hashimoto 344e7c26b5 fix a bunch of tests from go-getter import
11 years ago
Mitchell Hashimoto 06f4ac8166 config/module: use go-getter
11 years ago
Rob Zienert a1939e70f7 Adding ignore_changes lifecycle meta property
11 years ago
Martin Atkins 3c939f9b26 Merge #3239: "compact" interpolation function
11 years ago
Martin Atkins 16b11e443d go fmt the "compact" function changes.
11 years ago
Svend Sorensen 73b51698ad Replace simple case with if
11 years ago
Svend Sorensen 8e4a313f17 Return an empty slice for empty string lists
11 years ago
Svend Sorensen 53f44878ff Add tests for empty string lists
11 years ago
Anthony Stanton f2f4ded970 Initialize list as an empty slice
11 years ago
Panagiotis Moustafellos e4845f75cc removed extra parentheses
11 years ago
Anthony Stanton aed3f98703 Rename func which is now a method.
11 years ago
Anthony Stanton 95b2a60b29 Use {a,b} instead of {b,c}
11 years ago
Anthony Stanton ef2b0a0b71 Order functions alphabetically
11 years ago
Anthony Stanton 735803ef09 Test cases for compact()
11 years ago
Anthony Stanton 7610874264 Initial implementation of compact() interpolation function
11 years ago
Martin Atkins 3fde993978 Merge #3336: Remove local multierror package.
11 years ago
Martin Atkins 0b85d35e87 Rename base64enc/dec to encode/decode.
11 years ago
Sander van Harmelen 2ba8dc38fa Switch to go-multierror
11 years ago
Gorka Lerchundi Osa 70522fb770 implements base64{enc,dec} interpolation funcs
11 years ago
Anthony Scalisi 198e1a5186 remove various typos
11 years ago
Radek Simko 563fd3872b Add a few tests for string_list
11 years ago
Jason Gedge cf5926ddad Add a function to find the index of an element in a list.
11 years ago
Mitchell Hashimoto 89d44e5088 Merge pull request #2505 from hashicorp/b-var-splat
11 years ago
Mitchell Hashimoto 97d2c4a6de config/lang: don't see * as part of var name [GH-2046]
11 years ago
Paul Hinze c95f21cec1 config: make formatlist work on lists of length 1
11 years ago
Paul Hinze e88aeede9b core: allow distinguishing between empty lists and strings
11 years ago
Paul Hinze 7238b3b4af core: encapsulate representation of StringList
11 years ago
Paul Hinze 10b3abf405 config: introduce StringList to abstract over list hack
11 years ago
Mitchell Hashimoto 29eadb8194 terraform: missing provider should add missing aliases [GH-2023]
11 years ago
Mitchell Hashimoto 461f6557c7 config: fix test error
11 years ago
Mitchell Hashimoto fafc32b183 Merge branch 'b-prevent-destroy-type'
11 years ago
Paul Hinze c154ef9558 Merge pull request #1790 from TimeIncOSS/combine-func
11 years ago
Sander van Harmelen c62370f9e9 Add a function to load JSON directly
11 years ago
Radek Simko 6a60fa4bfe config: concat function supports lists (combines more lists into one)
11 years ago
Radek Simko e9e41dfd05 Improve test error messages
11 years ago
Radek Simko 841a1f08da Sort functions by name alphabetically
11 years ago
Mitchell Hashimoto aa1e66c16c config: parse lifecycle block with mapstructure for weak decode
11 years ago
Paul Hinze b781c6c446 core: keys() and values() funcs for map variables
11 years ago
Sam Boyer b82bd0c280 Condense switch fallthroughs into expr lists
11 years ago
Josh Bleecher Snyder 02e751e356 config: add formatlist
11 years ago
Josh Bleecher Snyder a3f79cd790 config: fix minor comment errors
11 years ago
Mitchell Hashimoto 1099e3f59f config: add module raw configs to InterpolatedConfigs [GH-1448]
11 years ago
Mitchell Hashimoto cca4964552 config: error in validation if module has self variable
11 years ago
Mitchell Hashimoto d0a6d78b97 config: test that resources reference good providers
11 years ago
Mitchell Hashimoto 8ee18e2e14 config: happy case test for multiple providers
11 years ago
Mitchell Hashimoto a599d5f224 config: validate that a multi provider is only configured once each
11 years ago
Matt Good 21b0a03d70 Support for multiple providers of the same type
11 years ago
Paul Hinze afe4abb637 core: add prevent_destroy lifecycle flag
11 years ago
Paul Hinze 5874fa06ff Merge pull request #1495 from TimeIncOSS/length-func
11 years ago
Paul Hinze 975a96f271 core: protect against count.index in modules
11 years ago
Paul Hinze 347690a73e core: don't crash when count.index is used in the wrong context
11 years ago
Radek Simko 6a720d087c length added to built-in functions
11 years ago
Mitchell Hashimoto 0ff39a3773 config/lang: support math on variables through implicits
11 years ago
Radek Simko 8eb6984a89 Test helpers to print expected output
11 years ago
Mitchell Hashimoto 6514bf5f25 config: clarify unknown variable error [GH-1480]
11 years ago
Mitchell Hashimoto 06beab6fd8 config: copy the key on Copy
11 years ago
Mitchell Hashimoto b201983304 terraform: copy RawConfigs
11 years ago
Mitchell Hashimoto aab7bc0da5 config/module: rename parameters
11 years ago
Mitchell Hashimoto 2378160803 config/module: determine storage folder by path
11 years ago
Mitchell Hashimoto f084d8d932 config/module: store the path with the module
11 years ago
Paul Hinze 766b4902d4 remove extraneous var declaration
11 years ago
7heo a6411626bf config: interprets '~' as the current user home dir in file()
11 years ago
Mitchell Hashimoto 44fce5ce60 config/module: remove debug
11 years ago
Mitchell Hashimoto 2e11ca68df config/module: go back to the original folder when doing parent
11 years ago
Mitchell Hashimoto bd4aaac71a config/module: failing unit test for GH-1232
11 years ago
Mitchell Hashimoto fdded8ca14 config: allow atlas block
11 years ago
Mitchell Hashimoto f84ae29cf8 config: isTemporaryFile -> isIgnoredFile
11 years ago
Radek Simko f794f30b7d Ignore hidden files per Unix conventions
11 years ago
Mitchell Hashimoto 23609a7af5 Merge pull request #1096 from hashicorp/f-sprintf
11 years ago
Mitchell Hashimoto 9e50bf76c7 config/lang: test case for multiline lang
11 years ago
Mitchell Hashimoto b39ddc7d47 config: add format function
11 years ago
Mitchell Hashimoto 63ee4c83ab config: only regexp if at least two characters in replace search
11 years ago
Mitchell Hashimoto 5895494897 config: test bad regexp for replace
11 years ago
Mitchell Hashimoto 2f33a24385 config: add replace function
11 years ago
Mitchell Hashimoto 5e25dc54a7 config: if any var is computed, the entire interpolation is computed
11 years ago
Mitchell Hashimoto 2feaebdca5 config: substring containing computed value replaces element
11 years ago
Mitchell Hashimoto 5848cba6ad config/lang: add modulo
11 years ago
Mitchell Hashimoto 3c4a036fb5 config/lang: add (expr) for order of ops
11 years ago
Mitchell Hashimoto 6750318bb5 config/lang: add test with expressions
11 years ago
Mitchell Hashimoto 9ddcaf15eb config/lang: fix shift/reduce conflict
11 years ago
Mitchell Hashimoto 07b78fdf84 config/lang: math operations
11 years ago
Mitchell Hashimoto 684228e371 config/lang: add math operations for ints
11 years ago
Mitchell Hashimoto cab2e408d2 config/module: retry bitbucket test a few times [GH-1027]
11 years ago
Mitchell Hashimoto 965fe45b9e config: self var validation
11 years ago
Mitchell Hashimoto 9c612964d8 config: self variables
11 years ago
Mitchell Hashimoto a31f2a276b Merge pull request #1015 from hashicorp/b-depends-on-var
11 years ago
Mitchell Hashimoto 87ecf4f40d Merge pull request #1016 from hashicorp/b-splat-validate
11 years ago
Mitchell Hashimoto 45a267111b Merge pull request #885 from brycekahle/split-func
11 years ago
Mitchell Hashimoto c14e84a657 config: validate provisioner splats can only reference others
11 years ago
Mitchell Hashimoto f156d0d1bd config: test we can ref splat of other resources
11 years ago
Mitchell Hashimoto 90a6a627ed config: validate configuration doens't contain splats to ourselves
11 years ago
Mitchell Hashimoto 0e7b150c5b config: depends on cannot contain interpolations [GH-985]
11 years ago
Mitchell Hashimoto 0a68576746 config: add RawConfig.Merge
11 years ago
Mitchell Hashimoto 4bcf6cf6b2 config: bare splat variables should not be allowed in provisioners
11 years ago
Emil Hessman e7bbbfb098 helper/url: add Windows 'safe' URL Parse wrapper
11 years ago
Emil Hessman a8db835a44 config/module: fix HgGetter test failures on Windows
11 years ago
Emil Hessman 5bbfc0d4e2 config/module: fix URL file path handling on Windows
11 years ago
Mitchell Hashimoto 2d9dd25493 config/module: fix regression of ignoring forced type if valid URL
11 years ago
Bryce Kahle adccaad252 Add split function
11 years ago
Emil Hessman 97227a5c70 config/module: fix detection of file paths on Windows
11 years ago
Emil Hessman 65177edd1e config/module: fix test failures on Windows
11 years ago
Emil Hessman d5a49363d7 config/module: handle absolute file paths on Windows
11 years ago
Emil Hessman 78d1fc742f config/module: adjust HttpGetter test to fix Windows test failure
11 years ago
Emil Hessman 74cf8fcabd config/module: adjust FileDetector tests for Windows
11 years ago
Emil Hessman 160e4f926e config/module: fix panic on Windows when running tests
11 years ago
Mitchell Hashimoto 63344a37c6 config/lang: verify single quotes syntax error [GH-613]
11 years ago
Mitchell Hashimoto 91a3405e88 config: understand provisioner blocks in JSON [GH-807]
11 years ago
Mitchell Hashimoto 7f9abbb99c config/lang; missed file
11 years ago
Mitchell Hashimoto a2e40ad731 config: multi-variable access in slice validation fixed [GH-798]
11 years ago
Mitchell Hashimoto 2abeb2d9ac config: use new API
11 years ago
Mitchell Hashimoto 61ee63d842 config/lang/ast: remove unused Eval
11 years ago
Mitchell Hashimoto 8d2c60a8af config/lang: eval
11 years ago
Mitchell Hashimoto 4302dbaf2a config/lang: make TypeCheck implementable by other nodes
11 years ago
Mitchell Hashimoto 57adfe53f6 config/lang: use the new AST stuff
11 years ago
Mitchell Hashimoto c96b3b9ddc config/lang/ast: Eval
11 years ago
Mitchell Hashimoto c4273974de config/lang/ast: introduce Type
11 years ago
Mitchell Hashimoto 342b4d2d9f config/lang: proper filename
11 years ago
Mitchell Hashimoto 1e79861b84 config/lang/ast: AST transforms are built-in
11 years ago
Mitchell Hashimoto d3c0543bf3 Merge pull request #797 from hashicorp/f-stronger-types
11 years ago
Emil Hessman 482460c4c8 config/lang: address vet reports
11 years ago
Mitchell Hashimoto 6e29ea0366 config/lang: some hoops to get the types to work
11 years ago
Mitchell Hashimoto 591610deea config/lang: string to int
11 years ago
Mitchell Hashimoto d12bf66403 config/lang: implicit builtins are coming in
11 years ago
Mitchell Hashimoto 36b6601baf config/lang: implicit type conversions
11 years ago
Mitchell Hashimoto 8ae14f06b3 config: variables must be typed
11 years ago
Mitchell Hashimoto dd456871e9 config/lang: remove unused code
11 years ago
Mitchell Hashimoto 92af4801a1 config: reintroduce concat
11 years ago
Mitchell Hashimoto 8d51b6b1d4 config/lang: variadic functions
11 years ago
Mitchell Hashimoto 4af4c9e16c config: add lookup function back
11 years ago
Mitchell Hashimoto 49fe0d5c7f config: remove a lot of unused stuff
11 years ago
Mitchell Hashimoto 1ccad4d729 config: convert fucntions, put functions into Scope
11 years ago
Mitchell Hashimoto 4ba7de17a9 config/lang: call the proper functions on Scope
11 years ago
Mitchell Hashimoto 2b679572b4 config/lang: TypeCheck
11 years ago
Mitchell Hashimoto 8ce7ef6188 config/lang: implement identifier semantic check
11 years ago
Mitchell Hashimoto 5abbde3ac9 config: remove unused files
11 years ago
Mitchell Hashimoto 740c25d4ea config: convert to config/lang
11 years ago
Mitchell Hashimoto e68fbceebc config/lang: fix bug parsing empty strings
11 years ago
Mitchell Hashimoto c424a8a815 config/lang: FixedValueTransform
11 years ago
Mitchell Hashimoto d1a0ea9d9b config/lang: make formal Stack object
11 years ago
Mitchell Hashimoto 6d9db3139c config/lang: AST String() methods
11 years ago
Mitchell Hashimoto abca82a84e config: another test
11 years ago
Mitchell Hashimoto aa2c7b2764 config: DetectVariables to detect interpolated variables in an AST
11 years ago
Mitchell Hashimoto c05d7a6acd config/lang: escaping interpolations with double dollar signs
11 years ago
Mitchell Hashimoto c15c17dfe9 config/lang: remove unused file
11 years ago
Mitchell Hashimoto f836397d8d config/lang: enable type checking in execution
11 years ago
Mitchell Hashimoto ec3b5f3886 config/lang: implement type lookup
11 years ago
Mitchell Hashimoto 25a2fbc902 config/lang: integer and float types
11 years ago
Mitchell Hashimoto a0926de4a9 config/lang: completed type checking
11 years ago
Mitchell Hashimoto 662760da11 config/lang: have position in AST
11 years ago
Mitchell Hashimoto d3b1010444 config/lang: start implementing type checking
11 years ago
Mitchell Hashimoto 8f925b93e0 config/lang: function calls work
11 years ago
Mitchell Hashimoto 4ae8cae9e7 config/lang: execution
11 years ago
Mitchell Hashimoto fa7891d182 config/lang/ast: use stringer to generate enums
11 years ago
Mitchell Hashimoto 1ff5a838a4 config/lang: can parse nested interpolations
11 years ago
Mitchell Hashimoto 669bdc61f9 config/lang: more implemented
11 years ago