Commit Graph

571 Commits (03f6c650ca9e78fc0d80d430ca1ec2a52c262da4)

Author SHA1 Message Date
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
Mitchell Hashimoto de1c23617a config: don't panic on parse error of variables
12 years ago
Mitchell Hashimoto 4f57437144 config: parser fixes and application
12 years ago
Mitchell Hashimoto 1dcefba5c4 config: parser
12 years ago
Mitchell Hashimoto db160a0249 config: add LiteralInterpolation
12 years ago
Mitchell Hashimoto 935fa1d6fb config: tests
12 years ago
Mitchell Hashimoto 7b3a462ad1 config: remove UserMapVariable
12 years ago
Mitchell Hashimoto b10b678326 config: fix error message in validation
12 years ago
Mitchell Hashimoto f9e6754763 config: comments
12 years ago
Mitchell Hashimoto 61938c070f config: validate type of default to string or mapping for var
12 years ago
Mitchell Hashimoto e59ff6e92c terraform: fix tests
12 years ago
Mitchell Hashimoto fe2285898a config: DefaultsMap should return nil if nil
12 years ago
Mitchell Hashimoto c9a20c3c58 terraform: test that mapping lookups work
12 years ago
Mitchell Hashimoto c988be9ce7 config: DefaultsMap
12 years ago
Mitchell Hashimoto aeb085c5f0 config: error if variable interpolation can't find variable
12 years ago
Mitchell Hashimoto 7578fb8bdc config: interpolationWalker detects functions
12 years ago
Mitchell Hashimoto 8b5cc5d534 config: lookup function works + tests
12 years ago
Mitchell Hashimoto 6a191d7395 config: function calls work
12 years ago
Mitchell Hashimoto cabc007ec4 config: get rid of the variable*Walkers, replace with more generic
12 years ago
Mitchell Hashimoto 4099c64833 config: tests, so many tests
12 years ago
Mitchell Hashimoto e8fe26488a config: interpolationWalk seems to work
12 years ago
Mitchell Hashimoto 4c9e0f395c config: basic interpolationWalker
12 years ago
Mitchell Hashimoto 582b0cf43e config: introduce Interpolation, not hooked up completely yet
12 years ago
Mitchell Hashimoto b772f8078d config: detect UserMapVariable
12 years ago
Mitchell Hashimoto b8a0a02217 config: TODO tests for validation
12 years ago
Mitchell Hashimoto b0ce89b805 config: change Default to an interface{}
12 years ago
Mitchell Hashimoto e396b8f3d9 config: test that multiple overrides work
12 years ago
Mitchell Hashimoto 77ff9c3a6b config: some docs
12 years ago
Mitchell Hashimoto 06cdd4fa42 config: LoadDir loads override files
12 years ago
Mitchell Hashimoto 9d2e83d56d config: Merge works properly
12 years ago
Mitchell Hashimoto cf1f3a9e73 config: test that LoadDir doesn't merge
12 years ago
Mitchell Hashimoto 69b7bc5047 config: add Append function
12 years ago
Mitchell Hashimoto 7bd7e4218f config: make ProviderConfigs slice
12 years ago
Mitchell Hashimoto 3834846418 config: Outputs is now a slice
12 years ago
Mitchell Hashimoto a19e2983de terraform: tests passing for Config change
12 years ago
Mitchell Hashimoto e4bcd3c448 config: Variables is now a slice
12 years ago
Mitchell Hashimoto a583b800a4 config: add unknownKeys to Merge
12 years ago
Mitchell Hashimoto 3d67c967aa config: make Merge an exported func
12 years ago
Mitchell Hashimoto 9cd1018f0b config: config files can be in JSON, as well
12 years ago
Mitchell Hashimoto 596e0f7f13 config: make dupped nil for GC reasons
12 years ago
Mitchell Hashimoto 50095612a2 config: resource should be unique
12 years ago
Mitchell Hashimoto 5329124cf9 config: unknown keys give errors
12 years ago
Armon Dadgar 2f2f5890f4 config: Testing loading of connection blocks
12 years ago
Armon Dadgar 36b1a2b9e8 config: Parse out special 'connection' blocks
12 years ago
Mitchell Hashimoto 7a01e781ab config: LoadDir with no matching files errors
12 years ago
Mitchell Hashimoto 6dfebcae69 config: test that we only load tf files
12 years ago
Mitchell Hashimoto 8655711a3f config: test that LoadDir doesn't load nested
12 years ago
Mitchell Hashimoto 14b29d0ecd config: LoadDir
12 years ago
Mitchell Hashimoto 9d028ab6de config: reword for ".tf" extension force
12 years ago
Armon Dadgar 34e733724d config: Update test to handle count
12 years ago
Mitchell Hashimoto e250a6f36c config: understand "provisioner" blocks
12 years ago
Mitchell Hashimoto 021a0db636 config: deterministic test ordering
12 years ago
Mitchell Hashimoto cfb08b6c60 config: mark even index accesses as a multi-access
12 years ago
Mitchell Hashimoto aa6a758f6b config: if count > 1, variable references must have index
12 years ago
Mitchell Hashimoto 07f98f7ee7 config: special detect ResourceVariables for multi-access
12 years ago
Mitchell Hashimoto ed1860de61 config: validate output only has "value" field
12 years ago
Mitchell Hashimoto a4f38a3933 config: validate resource variables in output
12 years ago
Mitchell Hashimoto cc2bb950a1 config: can parse outputs
12 years ago
Mitchell Hashimoto 5e79ddf7c6 config: detect variables in form of resource.name.*.blah
12 years ago
Mitchell Hashimoto 3337a625af config: support count meta-parameter
12 years ago
Mitchell Hashimoto 947fa4e669 terraform: Context introduction
12 years ago
Mitchell Hashimoto 78e056770c config: validate that resource references are valid
12 years ago
Mitchell Hashimoto 532cc33189 config: semantic check on variable references
12 years ago
Mitchell Hashimoto e50425b182 config: style
12 years ago
Mitchell Hashimoto 49e8477e9d config: fix order-dependent tests
12 years ago
Mitchell Hashimoto 7ab7ce17d9 config: tests passing for bug @pearkes found
12 years ago
Jack Pearkes d84c5fb015 config: fix libucl in test case (still failing)
12 years ago
Jack Pearkes bef1495c96 config: add failing test case for nested objects
12 years ago
Mitchell Hashimoto 2aed2fd96f Fix various order-dependent tests
12 years ago
Mitchell Hashimoto 46d3800a39 config: remove some unused test fixtures
12 years ago
Mitchell Hashimoto 1918f199d8 terraform: Graph, config: don't build graph
12 years ago
Mitchell Hashimoto 9acb9535ad config: ProviderConfigName shouldn't be on Resource
12 years ago
Mitchell Hashimoto d1cfb38bb8 config: ReplaceVariables is public
12 years ago
Mitchell Hashimoto d2001275dc terraform: initial Plan structure
12 years ago
Mitchell Hashimoto 69841c22e6 config: RawConfig.Config returns raw if no interpolate
12 years ago
Mitchell Hashimoto 8c50aa6382 config: use the RawConfig whereever posible
12 years ago
Mitchell Hashimoto 6420e4bd81 config: reorder
12 years ago
Mitchell Hashimoto bbca28a0ef config: test double interpolating
12 years ago
Mitchell Hashimoto e445f8db38 config: RawConfig works, plus tests
12 years ago
Mitchell Hashimoto a24b30b8d2 config: remove redundant variables
12 years ago
Mitchell Hashimoto 0ad9d9ddc7 config: keep track of unknown keys during interpolate
12 years ago
Mitchell Hashimoto 1af5aee146 config: remove unknown variable elements from the config
12 years ago
Mitchell Hashimoto e502bf6ba9 config: comply to reflectwalk interface
12 years ago
Mitchell Hashimoto 23d96248aa No need for a root name constant, just check for Meta == nil
12 years ago
Mitchell Hashimoto 82d527f798 config: rename ResourceGraph to Graph
12 years ago
Mitchell Hashimoto 867f6b3691 config: test to make sure that cycles are properly detected
12 years ago
Mitchell Hashimoto d2c3db552a config: providerconfigs can replace variables
12 years ago
Mitchell Hashimoto 3ccfd4d08c config: depgraph can contain provider configuratoins
12 years ago
Mitchell Hashimoto e2fa7094bd config: ProviderConfigName on Resource
12 years ago
Mitchell Hashimoto 7c6920bba1 terraform: diff/state work better together, merge
12 years ago
Mitchell Hashimoto bd1f235b9b config: allow applying variables to resources
12 years ago
Mitchell Hashimoto d731d033f1 terraform: build resource graph, validate
12 years ago
Mitchell Hashimoto 0008ff12c7 config: determine whether a variable is required properly
12 years ago
Mitchell Hashimoto 9895f8162f config: unix line endings in tests
12 years ago
Mitchell Hashimoto ab507814b7 config: support for provider configs
12 years ago
Mitchell Hashimoto 81bfa8970a config: make the tests a bit more intense
12 years ago
Mitchell Hashimoto bdeb278728 config: simplify
12 years ago
Mitchell Hashimoto dac18c823a config: can generate depgraph
12 years ago
Mitchell Hashimoto 3728e1cfc0 fmt
12 years ago
Mitchell Hashimoto 6983a0414a config: fix line endings on a test fixture
12 years ago
Mitchell Hashimoto bb0980f5ba config: tests for instantiating interpolated var types
12 years ago
Mitchell Hashimoto 9fef261eae config: comments
12 years ago
Mitchell Hashimoto 27c97b9b73 config: add benchmark for replace walker
12 years ago
Mitchell Hashimoto 2ecf1b500f config: careful with addressability and replacing variables
12 years ago
Mitchell Hashimoto 537fa6cc87 config: more tests for variable detector
12 years ago
Mitchell Hashimoto 1c9582ff38 config: set benchmark timer at right point
12 years ago
Mitchell Hashimoto 5bb51e50dd config: add benchmark test
12 years ago
Mitchell Hashimoto be83044f59 config: tests, error cases
12 years ago
Mitchell Hashimoto 95ef186bf8 config: can detect variables in config strings
12 years ago
Mitchell Hashimoto f22cc62b2c config: better memory management for libucl
12 years ago
Mitchell Hashimoto 50830e429a config: merge resources
12 years ago
Mitchell Hashimoto 14a25e6b58 config: merge configs
12 years ago
Mitchell Hashimoto aadb24aa08 config: error if unknown filetype
12 years ago
Mitchell Hashimoto 04d88b0540 config: move things out into more files
12 years ago
Mitchell Hashimoto c1dea5e5b3 config: comments
12 years ago
Mitchell Hashimoto 218cc80aab config: refactoring to be less libucl-specific
12 years ago
Mitchell Hashimoto 2ffee2a142 config: imports are relative to tf
12 years ago
Mitchell Hashimoto 88bb42b5a4 config: loader rename
12 years ago
Mitchell Hashimoto 7cfd360fea config: load the import tree
12 years ago
Mitchell Hashimoto fb9c58f0e2 config: better error message
12 years ago
Mitchell Hashimoto 089822a36f config: some comments
12 years ago
Mitchell Hashimoto ec3f72703c Initial work on config
12 years ago