Mitchell Hashimoto
6affc57b2d
terraform: destroy node should not create
2015-02-24 22:45:47 -08:00
Mitchell Hashimoto
1fcbfcd19d
Merge pull request #1037 from hashicorp/f-continuous-state
...
Continuous state persistance
2015-02-24 17:34:19 -08:00
Mitchell Hashimoto
ac167c3082
terraform: test post state update is called
2015-02-23 22:10:31 -08:00
Mitchell Hashimoto
57f7507ebd
terraform: more state tests, fix a bug
2015-02-23 21:43:54 -08:00
Mitchell Hashimoto
f3af221866
terraform: make DeepCopy public
2015-02-23 21:32:27 -08:00
Mitchell Hashimoto
c2bf600603
state: only change serial if changed
2015-02-23 21:26:33 -08:00
Mitchell Hashimoto
821536b1e9
terraform: call the EvalUpdateStateHook strategically
2015-02-23 19:14:16 -08:00
Mitchell Hashimoto
429711b938
terraform: PostStateUpdate hook and EvalUpdateStateHook
2015-02-23 19:09:48 -08:00
Mitchell Hashimoto
3f9dafc5f6
Merge pull request #1033 from hashicorp/f-self
...
core: Self Variables
2015-02-23 15:19:48 -08:00
Mitchell Hashimoto
330364f668
terraform: State.IsEmpty
2015-02-23 15:13:54 -08:00
Mitchell Hashimoto
6cd5c894e8
terraform: State.IsRemote
2015-02-23 15:13:54 -08:00
Mitchell Hashimoto
dd7bc5db0c
terraform: more self tests
2015-02-23 15:02:26 -08:00
Mitchell Hashimoto
0e59acc2c9
terraform: enable self vars
2015-02-23 14:56:02 -08:00
Mitchell Hashimoto
022967acdb
terraform: module inputs/vars can be non-strings [GH-819]
2015-02-23 13:50:53 -08:00
Mitchell Hashimoto
8a9c8a882e
Merge pull request #1019 from hashicorp/f-state-equality
...
terraform: State.Equal to check for state equality
2015-02-23 13:47:47 -08:00
Mitchell Hashimoto
709c40026c
terraform: remove debug println
2015-02-23 13:45:45 -08:00
Mitchell Hashimoto
39d2bf4629
terraform: cache provider configuration with the provider name
...
/cc @sethvargo
This was causing a race with whichever provider was configured first
would "win" the configuration slot. We need to make sure to append the
unique provider name to the end of the key.
Note: this doesn't have tests. We don't test this yet. :(
2015-02-20 15:48:06 -08:00
Mitchell Hashimoto
40ee70d5c9
terraform: Input should only be called on providers once
...
/cc @sethvargo
Prior to this commit, we'd only persist the result of calling Input if
any input was given (len(result) > 0). The result was that every module
would also repeat asking for input even if there was no input to be
asked for.
This commit makes it so that if no input was received, we still set a
sentinel so that modules don't re-ask.
2015-02-20 15:35:57 -08:00
Mitchell Hashimoto
b041f48e56
terraform: State.Equal
2015-02-20 13:39:49 -08:00
Mitchell Hashimoto
85e2bef179
terraform: provisioners should be cached with the provisioner name
2015-02-20 10:50:36 -08:00
Mitchell Hashimoto
ab414de0ab
terraform: test case for destroying with a count [GH-527]
2015-02-20 10:02:52 -08:00
Mitchell Hashimoto
c2593f6ada
terraform: re-enable dot-graphs
2015-02-19 23:00:29 -08:00
Mitchell Hashimoto
4b6f258f1f
terraform: only depose state if we're doing the destroy side
2015-02-19 12:08:34 -08:00
Mitchell Hashimoto
fa222a44c3
terraform: limit parallelism
2015-02-19 12:08:34 -08:00
Mitchell Hashimoto
0175d1babc
terraform: updated comment
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
10e96ad72d
terraform: provisioner config is properly interpolated
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
ae68cf1705
terraform: slightly better validation error messages
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
459ad04d71
terraform: provider cache should append the provider name to it
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
ad595cf254
terraform: test case for cycle of CBD depending on non-CBD
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
e68ea0d38f
terraform: only keep the destroy if we decreased counts
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
1ed37f0b7f
terraform: change DiffId to DiffInclude to allow smarter logic
...
This lets us check for orphans properly.
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
4789f16796
terraform: tainted destroy nodes
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
991611857a
terraform: remove requirement that DestroyNode return the SAME node
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
9c14315336
terraform: don't prune if there are known tainted resources
2015-02-19 12:08:33 -08:00
Mitchell Hashimoto
8d2ed22e97
terraform: prune destroy nodes for resources not in diff
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
8db6f722d2
terraform: CBD edge transpositions must happen atomically
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
c47440ddd6
terraform: remove evaltype, unused
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
b52881d232
terraform: clean up EvalNodes
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
af1778cd5e
terraform: goodbye graph.go
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
b1e5b32322
terraform: Graph returns *Graph for now
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
7552abed8b
terraform: fix Refresh func signature
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
7ccba588ac
terraform: gofmt -w -r 'Context2 -> Context' terraform/
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
e37c187228
terraform: goodbye context.go (old)
2015-02-19 12:08:32 -08:00
Mitchell Hashimoto
14b5942453
terraform: all input tests pass
2015-02-19 12:08:08 -08:00
Mitchell Hashimoto
7c78a3749e
terraform: provider input
2015-02-19 12:08:08 -08:00
Mitchell Hashimoto
f3714f1efc
terraform: start Input
2015-02-19 12:08:08 -08:00
Mitchell Hashimoto
7b305d1f41
terraform: forgot the docs :(
2015-02-19 12:08:08 -08:00
Mitchell Hashimoto
960ba73f1d
terraform: last apply test
2015-02-19 12:08:08 -08:00
Mitchell Hashimoto
1c713878b0
terraform: fix outputs on destroy
2015-02-19 12:08:07 -08:00
Mitchell Hashimoto
bd0c3b12cb
terraform: more tests passing
2015-02-19 12:08:07 -08:00