Commit Graph

571 Commits (03f6c650ca9e78fc0d80d430ca1ec2a52c262da4)

Author SHA1 Message Date
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
Mitchell Hashimoto fcdcf117f0 config/lang: initial work
11 years ago
Armon Dadgar 69ca9efeea Merge pull request #700 from Banno/fix-interpolated-func-with-colon
11 years ago
Mitchell Hashimoto 6b7dfb4c8f config: some extra comments
11 years ago
Luke Amdor e970eea3cd adding literal colon to interpolated regex
12 years ago
Mitchell Hashimoto d24082da1e config: validate that module variables can go to ints, convert [GH-624]
12 years ago
Kushal Pisavadia b40b7ce01a Do not read temporary editor files, fixes #548
12 years ago
Seth Vargo 94e1eac051 Merge pull request #547 from ceh/issue-518
12 years ago
Armon Dadgar 4cdeb4b846 Merge pull request #554 from rcostanzo/f-array-index
12 years ago
Rob Costanzo 8da91e9636 Added an element interpolation lookup function for accessing a specific index from a list with splat variables
12 years ago
Emil Hessman a76290f278 config/module: don't walk dst when dst is in src
12 years ago
Emil Hessman 4bfe18b40d argument and verb formatting fixes reported by go vet
12 years ago
Mitchell Hashimoto 369ba8cf07 config/module: fix issue where Get was copying subdir contents twice
12 years ago
Mitchell Hashimoto 6ee9c06cdc config/module: copyDir properly copies files in subdirectories
12 years ago
Mitchell Hashimoto 4cb1ea6ae1 config: allow exact multi-resource references outside slices
12 years ago
Mitchell Hashimoto 36f225dea0 fmt
12 years ago
Mitchell Hashimoto 1ebcedb22b config: make the interp split pretty insane
12 years ago
Mitchell Hashimoto 61b46c8612 config: add join() function
12 years ago
Mitchell Hashimoto 7b48924532 config: validate that multi-variables are only used in slices
12 years ago
Mitchell Hashimoto a931707a6a config: removeCurrent finds the proper map
12 years ago
Mitchell Hashimoto 5c7ce2d003 config: make the tests more robust
12 years ago
Mitchell Hashimoto c6424e9569 config: make the replace function marginally more understandable
12 years ago
Mitchell Hashimoto 22908d67ba config: first pass at replacing lists within a slice
12 years ago
Mitchell Hashimoto 9dd7618fce config: fix messaging for name symbols
12 years ago
Mitchell Hashimoto 67d9188a29 config: validate module names are valid
12 years ago
Mitchell Hashimoto 50e5eacc15 config: add NameRegexp
12 years ago
Mitchell Hashimoto e922b16dba Merge pull request #377 from hashicorp/f-path-var
12 years ago
Mitchell Hashimoto c1fa4c2e4b config: validate that module source can't contain interpolations
12 years ago
Mitchell Hashimoto d714c6f2f1 terraform: test path variables
12 years ago
Mitchell Hashimoto 1e00b4386c config/module: Child(nil) or empty will return self
12 years ago
Mitchell Hashimoto 267d45df86 config/module: Can look up Child with Tree.Child
12 years ago
Mitchell Hashimoto 679ab1d515 config: parse ${path.module}
12 years ago
Mitchell Hashimoto 5c2182e316 config/module: only return SkipDir if it is dot-prefixed
12 years ago
Mitchell Hashimoto f35ebe7032 config/module: walk actually recurses into dirs, don't copy dot-prefix
12 years ago
Mitchell Hashimoto 2e63a69e57 config: validate good count variables
12 years ago
Mitchell Hashimoto b484ec19b6 config: validate that count vars are valid types
12 years ago
Mitchell Hashimoto bc26777963 config: count can't interpolate count variables
12 years ago
Mitchell Hashimoto 8756d52124 config: count.index parses
12 years ago
Mitchell Hashimoto dd14303022 config: validate that count is an int
12 years ago
Mitchell Hashimoto 5090678168 config: validate that only proper variables can be in the count
12 years ago
Mitchell Hashimoto fa05b165ad config: fix gob encode/decode for raw config and keys
12 years ago
Mitchell Hashimoto 101ac636a2 config: add Config method
12 years ago
Mitchell Hashimoto f772c11103 config: validate unknown var in count
12 years ago
Mitchell Hashimoto 8e2315599f config: Count can be a string (for interpolation)
12 years ago
Armon Dadgar 1aaddafba0 terraform: Adding lifecycle config block
12 years ago
Armon Dadgar a14ea76c84 config: Support create_before_destroy config
12 years ago
Mitchell Hashimoto 3941dbac5d fmt
12 years ago
Mitchell Hashimoto 0a2d06268c config/module: detect supports subdirs
12 years ago
Mitchell Hashimoto 6cbadf14df config: IsEmptyDir is true if dir doesn't exist
12 years ago
Mitchell Hashimoto 9689a34b28 config/module: GetCopy
12 years ago
Mitchell Hashimoto c91fd76fe8 config/module: Get can support subdirs
12 years ago
Mitchell Hashimoto 57c1a8dada config: add IsEmptyDir
12 years ago
Mitchell Hashimoto 4fbd5abc63 config/module: support GitHub paths without //
12 years ago
Mitchell Hashimoto 21d90dcf4f config/module: HTTP supports subdirs
12 years ago
Mitchell Hashimoto 7aa30fdf25 config: support subdirectories with the "//" syntax
12 years ago
Mitchell Hashimoto 1ef167602e config/module: validate that required parameters are passed through
12 years ago
Mitchell Hashimoto a36b3e1ec5 command: tests pass
12 years ago
Mitchell Hashimoto 718fb42f4b terraform: Plan should use module.Tree
12 years ago
Mitchell Hashimoto 97da02c368 config/module: proper name for root
12 years ago
Mitchell Hashimoto ed538a9594 command: Get command, not functional yet. Converted to use modules.
12 years ago
Mitchell Hashimoto 9a626b3e8c config/module: support HTTP protocol
12 years ago
Mitchell Hashimoto fde151978e config/module: parallelize some things
12 years ago
Mitchell Hashimoto 27564fff2b config/module: detect BitBucket URLs
12 years ago
Mitchell Hashimoto 5480eb4e41 config/module: detect preserves forces
12 years ago
Mitchell Hashimoto 2a655bc7d9 config/module: detect GitHub URLs
12 years ago
Mitchell Hashimoto 9c74d6b5c0 config/module: hg supports branches/tags/etc.
12 years ago
Mitchell Hashimoto feb9a36597 config/module: tests to verify that params are preserved on files
12 years ago
Mitchell Hashimoto ac19a488d2 config/module: support branches in git
12 years ago
Mitchell Hashimoto 13d892217c config/module: fix some issues where tag re-pulling didnt' work
12 years ago
Mitchell Hashimoto dcb900470c config/module: git supports tags
12 years ago
Mitchell Hashimoto 7e94f7d4a9 config/module: Mercurial support
12 years ago
Mitchell Hashimoto fc71d7091f config/module: Git test... this is kind of ghetto
12 years ago
Mitchell Hashimoto 96385113e7 config/module: delete weird subproject business
12 years ago
Mitchell Hashimoto 3e2989daf1 config/module: test Git
12 years ago
Mitchell Hashimoto acb6d12a75 config/module: support forced getters with TYPE::URL syntax
12 years ago
Mitchell Hashimoto cf4885d2fd config/module: git support
12 years ago
Mitchell Hashimoto 7bbf6a0d3a config/module: NewTreeModule is easier to use
12 years ago
Mitchell Hashimoto c0a30d3337 config: TestString
12 years ago
Mitchell Hashimoto 292f57ea0a config/module: validate outputs line up with ModuleVariables
12 years ago
Mitchell Hashimoto b60da29d48 config: validate that variables reference valid modules
12 years ago
Mitchell Hashimoto 46c140c797 config: can parse module variables
12 years ago
Mitchell Hashimoto 12e7c75211 config/module: validate that parameters into modules valid
12 years ago
Mitchell Hashimoto 2419bf79f2 config/module: error if duplicate module
12 years ago
Mitchell Hashimoto 4fdb6d1b52 config: add test for empty file
12 years ago
Mitchell Hashimoto c9fd910c41 config/module: Validate
12 years ago
Mitchell Hashimoto 30b76ef820 config/module: tree.String()
12 years ago
Mitchell Hashimoto 85d1e40644 config/module: can load a tree properly
12 years ago
Mitchell Hashimoto e96fe43814 config: dir on Config should be an absolute path
12 years ago
Mitchell Hashimoto f8836290da config: not directory that config was loaded from
12 years ago
Mitchell Hashimoto 6eee9fbcb3 config/module: file paths require pwd
12 years ago
Mitchell Hashimoto a35a9262d4 config/module: detectors, some more work on Tree
12 years ago
Mitchell Hashimoto 799ffbb3ac config/module: tree.Modules()
12 years ago
Mitchell Hashimoto 8dc8eac4bf config: change module syntax
12 years ago
Mitchell Hashimoto 5e4c2b4f49 config/module: test that symlink that exists will be overwritten
12 years ago
Mitchell Hashimoto fa997525c2 config/module: Get tests
12 years ago
Mitchell Hashimoto c2fe35e74e config/module: FileGetter tests
12 years ago
Mitchell Hashimoto bb22090040 config/module: start, lots of initial work
12 years ago
Mitchell Hashimoto dd6f536fab config: Merge for modules works
12 years ago
Mitchell Hashimoto e7fe5aa452 config: Append works with modules
12 years ago
Mitchell Hashimoto 610e92cab2 config: validate no duplicate modules
12 years ago
Mitchell Hashimoto 2a6990e2b9 config: `module` structures parse
12 years ago
Mitchell Hashimoto c724f161c5 config: parse multi-args in interpolations [GH-282]
12 years ago
Mitchell Hashimoto 21472e98b8 config: unit tests for lexer
12 years ago
Mitchell Hashimoto ffcacca191 config: don't crash when there is an error parsing interpolation
12 years ago
Mitchell Hashimoto eac01c2ac8 config: replace interpolations in block keys [GH-234]
12 years ago
Mitchell Hashimoto 56cf1e6faa Fix go vet complaints
12 years ago
Mitchell Hashimoto f26a2700a1 fmt
12 years ago
Mitchell Hashimoto da2e221628 terraform: Interpolate if there are any interpolations [GH-159]
12 years ago
Mitchell Hashimoto 4a3dff2441 config: allow '/' in string args
12 years ago
Mitchell Hashimoto 2fb001dcf9 config: add `concat` function [GH-191]
12 years ago
Mitchell Hashimoto 04975827ac Remove all traces of libucl
12 years ago
Mitchell Hashimoto 3e3be5e2a3 config: only walk if non-nil
12 years ago
Mitchell Hashimoto 2fd545bca1 config: use new HCL lib and structure
12 years ago
Mitchell Hashimoto 038cca291e config: HCL loader
12 years ago
Mitchell Hashimoto fe2a306341 config: validate no interp in var [GH-180]
12 years ago
Alex Gaynor 46154ca1d3 Fixed a ton of typos in docs and comments
12 years ago
Mitchell Hashimoto 8c7b80d172 Merge pull request #61 from carlosdp/fix-maps-race
12 years ago
Mitchell Hashimoto 742e33c672 config: accept file("test.txt") [GH-145]
12 years ago
Mitchell Hashimoto b19a976696 config: additional tests for sanity
12 years ago
Carlos Diaz-Padron 47529f829e Fix maps race in append and merge tests
12 years ago
Mitchell Hashimoto d28e5a1638 dos2unix
12 years ago
Mitchell Hashimoto 99a4439359 config: nicer error if dir isn't a dir
12 years ago
Mitchell Hashimoto f9f4e62411 config: validate that count is >= 1
12 years ago
Mitchell Hashimoto fa175113fe config: case sensitive templates
12 years ago
Mitchell Hashimoto 0d12c3f5b8 config: fmt
12 years ago
Mitchell Hashimoto 80385c7682 config: add file() function for reading file contents
12 years ago
Mitchell Hashimoto 625fb65526 config: make errors a bit nicer
12 years ago
Mitchell Hashimoto 20da842bcf config: validate dependsOn
12 years ago
Mitchell Hashimoto 0699cde1d4 config: depends_on meta-parameter
12 years ago
Mitchell Hashimoto 1e2de8f91c config: more tests
12 years ago
Mitchell Hashimoto bff5c09164 config: test nested function calls
12 years ago
Mitchell Hashimoto 7dfd4f5a3c config: tests for the parser
12 years ago