Commit Graph

4189 Commits

Author SHA1 Message Date
Paul Hinze 11280a09b3 Merge pull request #1538 from fatih/build-script-fix
scripts/build.sh: fix GOPATH/bin folder breaking build
2015-04-15 11:50:55 -05:00
Paul Hinze e0dee1a3aa Merge pull request #1536 from shvar/patch-1
get dependencies without installing them
2015-04-15 11:49:22 -05:00
Paul Hinze 76701884cd Merge pull request #1517 from hashicorp/f-simplify-google-instance
google: simplify instance metadata schema
2015-04-15 11:48:37 -05:00
Fatih Arslan 0c80207bff scripts/build.sh: fix GOPATH/bin folder breaking build
If GOPATH/bin doesn't exists the build scripts just exists, leaving the
`terraform/bin` folder with only one single binary called `terraform`.
Discovered while setting up a new GOPATH just for terraform.
2015-04-15 19:36:44 +03:00
Paul Hinze 43231b56d2 Merge pull request #1534 from hashicorp/b-crash-on-output-interpolate
core: don't crash when count.index is used in the wrong context
2015-04-15 11:03:37 -05:00
Paul Hinze 01e75e0fc3 google: simplify instance metadata schema
It doesn't need to be a List of Maps, it can just be a Map.

We're also safe to remove a previous workaround I stuck in there.

The config parsing is equivalent between a list of maps and a plain map,
so we just need a state migration to make this backwards compatible.
2015-04-15 11:01:35 -05:00
Paul Hinze 975a96f271 core: protect against count.index in modules
Modules should get a validation error just like outputs do.

refs #1528
2015-04-15 10:41:56 -05:00
Paul Hinze 347690a73e core: don't crash when count.index is used in the wrong context
It's bad manners! :)

Also adds a validation error up at the configuration layer so the user
sees the case from #1528 as an error message.

fixes #1528
2015-04-15 10:23:53 -05:00
Eli Shvartsman 44d6123894 get dependencies without installing them
For now, make dev creates in ${MAIN_GOPATH}/bin/ files like 'provider-google' alongside with 'terraform-provider-google'.
If we decided to build plugins with custom names and install them manually with 'cp' command, it could make sense not to do it here.
2015-04-15 13:08:37 +03:00
Paul Hinze 062947556a Update CHANGELOG.md 2015-04-14 17:50:04 -05:00
Paul Hinze 6365b3af89 Merge pull request #1515 from hashicorp/b-diff-mismatch-on-instance-replacement
core: avoid diff mismatch on NewRemoved fields during -/+
2015-04-14 17:44:28 -05:00
Paul Hinze 64f0897c82 core: avoid diff mismatch on NewRemoved fields during -/+
fixes #1508

In a DESTROY/CREATE scenario, the plan diff will be run against the
state of the old instance, while the apply diff will be run against an
empty state (because the state is cleared when the destroy node does its
thing.)

For complex attributes, this can result in keys that seem to disappear
between the two diffs, when in reality everything is working just fine.

Same() needs to take into account this scenario by analyzing NewRemoved
and treating as "Same" a diff that does indeed have that key removed.
2015-04-14 17:23:30 -05:00
Paul Hinze e72e344d07 Update CHANGELOG.md
#humblepie
2015-04-14 15:46:15 -05:00
Mitchell Hashimoto a569d206d5 Merge pull request #1529 from jtopper/fix_count_lookup_docs
website: Fix minor error in index/count docs
2015-04-14 13:23:10 -07:00
Mitchell Hashimoto 60e6db2b27 update CHANGELOG 2015-04-14 13:22:51 -07:00
Mitchell Hashimoto c8fb1c7358 Merge pull request #1527 from hashicorp/b-sad-destroy
terraform: when pruning destroy, only match exact nodes, or exact counts
2015-04-14 13:21:51 -07:00
Jon Topper 6e3675e2de Fix minor error in index/count docs 2015-04-14 22:21:30 +02:00
Mitchell Hashimoto 2934824069 terraform: remove debug 2015-04-14 13:20:23 -07:00
Mitchell Hashimoto 486cde44ec terraform: when pruning destroy, only match exact nodes, or exact counts 2015-04-14 13:17:08 -07:00
Mitchell Hashimoto 173d8df0ed up version for dev 2015-04-14 12:54:45 -07:00
Paul Hinze d49933b0f8 Merge pull request #1514 from hashicorp/f-dead-evaltree-cbd-code
core: remove dead code from pre-deposed refactor
2015-04-14 13:42:50 -05:00
Mitchell Hashimoto 9b38c8e948 update CHANGELOG 2015-04-14 10:59:02 -07:00
Mitchell Hashimoto 4014710b2f Merge pull request #1523 from hashicorp/b-tainted-cycle
terraform: prune tainted destroys if no tainted in state [GH-1475]
2015-04-14 10:58:08 -07:00
Mitchell Hashimoto b64fd8401c terraform: prune tainted destroys if no tainted in state [GH-1475] 2015-04-14 10:48:45 -07:00
Mitchell Hashimoto 9d9b419a83 update CHANGELOG 2015-04-14 09:15:29 -07:00
Mitchell Hashimoto 2913b93337 Merge pull request #1521 from hashicorp/b-math-vars
config/lang: support math on variables through implicits
2015-04-14 09:14:50 -07:00
Mitchell Hashimoto 0ff39a3773 config/lang: support math on variables through implicits 2015-04-14 09:09:18 -07:00
Mitchell Hashimoto e7e2aeadab update CHANGELOG 2015-04-14 08:34:57 -07:00
Mitchell Hashimoto e91b5136bf Merge pull request #1356 from koendc/b-remote-plugin-case
command/state: fix for state files containing an upper case remote type
2015-04-14 08:34:28 -07:00
Mitchell Hashimoto 96e05e2f9f Merge pull request #1498 from dublx/patch-2
website: clarify docs for docker params
2015-04-14 08:31:26 -07:00
Mitchell Hashimoto 968a152df4 Merge pull request #1443 from hashicorp/f-acc-tests-check-empty-plan
providers: check for empty plan after each test step
2015-04-14 08:30:11 -07:00
Mitchell Hashimoto c9eb7dc8bf Merge pull request #1465 from tlovett-rmn/fix-security-groups-docs
website: security_groups field expects a list of Group Names, not Group IDs
2015-04-14 08:29:13 -07:00
Mitchell Hashimoto f3129a6313 update cHANGELOG 2015-04-14 08:28:31 -07:00
Mitchell Hashimoto 710d1113eb Merge pull request #1490 from jtopjian/openstack-allow-blank-region
provider/openstack: Allow Blank Region
2015-04-14 08:28:03 -07:00
Mitchell Hashimoto c511524de1 update cHANGELOG 2015-04-14 08:24:21 -07:00
Mitchell Hashimoto 0eb69bcd37 Merge pull request #1518 from hashicorp/b-lc-id
providers/aws: set LC ID after creation
2015-04-14 08:23:31 -07:00
Mitchell Hashimoto 783d912b7c providers/aws: set id outside if/esle 2015-04-14 08:23:16 -07:00
Clint 0eecf070d9 Merge pull request #1489 from hashicorp/f-aws-upstream-route-table
provider/aws: Convert Route table and Route table association to upstream aws-sdk-go
2015-04-14 10:15:24 -05:00
Clint 85c4a134ad Merge pull request #1486 from hashicorp/f-aws-upstream-vpc
provider/aws: Convert AWS VPC to upstream aws-sdk-go
2015-04-14 10:14:56 -05:00
Mitchell Hashimoto f7a2f2a2e7 providers/aws: set ID after creation 2015-04-13 17:03:13 -07:00
Paul Hinze d5f6942755 core: remove dead code from pre-deposed refactor
CBD used to "borrow" the last slot of of the Tainted list in the State,
but as of #1078 it uses its own list. This seems like just a block of
old code that didn't get cleaned up from the refactor. Deposed resources
get their own destroy nodes, so they don't have to mess with the main
destroy node.
2015-04-13 18:33:29 -05:00
Mitchell Hashimoto 0bd7856942 website: update LC docs to note name is optional 2015-04-13 16:00:29 -07:00
Paul Hinze 86d58089d3 Merge pull request #1509 from hashicorp/f-aws-upstream-network-acl
provider/aws: Convert Network ACL and helper library to upstream aws-sdk-go
2015-04-13 16:48:25 -05:00
Thomas Lovett baf1625485 security_groups field expects a list of Security Group Group Names, not IDs 2015-04-13 14:23:11 -05:00
Sander van Harmelen 7a275fb737 Merge pull request #1504 from svanharmelen/f-cloudstack-network
Reverting the behavioural change, while still fixing the logic error
2015-04-13 18:54:12 +02:00
Paul Hinze 755069f60f Merge pull request #1501 from hashicorp/f-diff-mismatch-reason
terraform: add reason to diff mismatch error
2015-04-13 11:46:31 -05:00
Clint Shryock 5394d91657 provider/aws: Convert Network ACL and helper library to upstream aws-sdk-go 2015-04-13 11:14:21 -05:00
Sander van Harmelen 41536c0d58 Reverting the behavioural change, while still fixing the logic error 2015-04-13 17:33:22 +02:00
Clint Shryock 53478c96de provider/aws: Convert AWS Main Route Table Association to upstream 2015-04-13 10:01:56 -05:00
Paul Hinze d168cc1bd1 terraform: add reason to diff mismatch error
Helps with debugging those pesky "diffs did not match" errors.
2015-04-13 09:31:09 -05:00