Commit Graph

6044 Commits

Author SHA1 Message Date
Paul Hinze c95f21cec1 config: make formatlist work on lists of length 1
removes treat-lists-as-scalar special casing for formatlist

/cc @radeksimko

fixes #2240
2015-06-25 18:55:28 -05:00
Paul Hinze e88aeede9b core: allow distinguishing between empty lists and strings
Had to handle a lot of implicit leaning on a few properties of the old
representation:

 * Old representation allowed plain strings to be treated as lists
   without problem (i.e. shoved into strings.Split), now strings need to
   be checked whether they are a list before they are treated as one
   (i.e. shoved into StringList(s).Slice()).
 * Tested behavior of 0 and 1 length lists in formatlist() was a side
   effect of the representation. Needs to be special cased now to
   maintain the behavior.
 * Found a pretty old context test failure that was wrong in several
   different ways. It's covered by TestContext2Apply_multiVar so I
   removed it.
2015-06-25 18:53:35 -05:00
Paul Hinze 7238b3b4af core: encapsulate representation of StringList
Now the only code that cares about how StringLists are represented lives
inside string_list.go

...which gives us the ability to change it! :)
2015-06-25 17:55:57 -05:00
Paul Hinze 10b3abf405 config: introduce StringList to abstract over list hack
This is the initial pure "all tests passing without a diff" stage. The
plan is to change the internal representation of StringList to include a
suffix delimiter, which will allow us to recognize empty and
single-element lists.
2015-06-25 17:55:56 -05:00
Mitchell Hashimoto 6b84405aa9 Update CHANGELOG.md 2015-06-25 15:41:51 -07:00
Mitchell Hashimoto 4ff8f94fd6 Merge pull request #2502 from hashicorp/b-var-ask
command: ask for input even if tfvars is set [GH-2161]
2015-06-25 15:40:59 -07:00
Mitchell Hashimoto 96b53cc06c command: ask for input even if tfvars is set [GH-2161] 2015-06-25 15:29:46 -07:00
Radek Simko faa41c29b1 Update CHANGELOG.md 2015-06-25 22:26:15 +01:00
Rui Lopes 02791d70df provider/digitalocean: check if the droplet no longer exists. 2015-06-25 22:17:56 +01:00
Paul Hinze 59fdc24d75 Merge pull request #2492 from aznashwan/f-azure-secgroup-rules-relations
provider/azure: Made segroup rules one-to-many with secgroups.
2015-06-25 15:25:49 -05:00
aznashwan 1e08c6e72f Made Azure security group rules - security groups relationship one - many. 2015-06-25 21:57:38 +03:00
Clint d2d9ec328b Update CHANGELOG.md 2015-06-25 12:30:13 -05:00
Clint de5df6f378 Merge pull request #2462 from johnewart/dynamodb_throttle
dynamodb - Support backing off a bit when throttling / limit-exceeded exceptions happen
2015-06-25 12:29:09 -05:00
Clint 99a0f3a864 Update CHANGELOG.md 2015-06-25 11:31:19 -05:00
Clint d072e8eb50 Merge pull request #2469 from hashicorp/f-aws-update-elasticache
provider/aws: Allow in-place updates for ElastiCache cluster
2015-06-25 11:29:33 -05:00
Mitchell Hashimoto 51db7ac731 update CHANGELOG 2015-06-25 09:23:58 -07:00
Mitchell Hashimoto e135ff546a state/remote: clean up the encryption flag stuff
/cc @hobbeswalsh
2015-06-25 09:23:12 -07:00
Mitchell Hashimoto a5af429457 Merge pull request #2405 from hobbeswalsh/master
remote: allowing at-rest encryption when using S3
2015-06-25 09:20:13 -07:00
Clint Shryock 2e23210e58 poll ElastiCache cluster status on update 2015-06-25 11:10:02 -05:00
Clint Shryock 54ddd55c63 add note on availability 2015-06-25 11:09:30 -05:00
Clint Shryock 93a577880b provider/aws: Allow in-place updates for ElastiCache cluster 2015-06-25 11:09:29 -05:00
Mitchell Hashimoto 25fa84974b update CHANGELOG 2015-06-25 09:07:11 -07:00
Mitchell Hashimoto 02624118b3 Merge pull request #2489 from joshgarnett/aws_instance_monitoring
provider/aws: adding support for detailed monitoring of instances
2015-06-25 09:05:15 -07:00
Mitchell Hashimoto ecbd5a5013 Merge pull request #2455 from semarj/master
dynamodb - only require nonkey attributes on INCLUDE
2015-06-25 09:03:44 -07:00
Mitchell Hashimoto 6edc3d0a56 update CHANGELOG 2015-06-25 08:56:56 -07:00
Mitchell Hashimoto 592df714eb Merge pull request #2478 from hashicorp/b-invalid-var-should-error
terraform: error if resource not found in module [GH-1997]
2015-06-25 08:56:20 -07:00
Mitchell Hashimoto bd17fa5eaa update CHANGELOG 2015-06-25 08:55:41 -07:00
Mitchell Hashimoto c79a661ce1 Merge branch 'b-provider-alias-module' 2015-06-25 08:54:56 -07:00
Mitchell Hashimoto 6f418b2530 update CHANGELOG 2015-06-25 08:51:28 -07:00
Mitchell Hashimoto 632cc92897 Merge pull request #2476 from hashicorp/b-orphan-provider-inherit
terraform: module orphans providers should inherit config
2015-06-25 08:50:49 -07:00
Mitchell Hashimoto fb66be7b35 update cHANGELOG 2015-06-25 08:50:06 -07:00
Sander van Harmelen a2ab3a1402 Update CHANGELOG.md 2015-06-25 17:49:37 +02:00
Mitchell Hashimoto c861f431a7 Merge pull request #2477 from hashicorp/b-module-computed-var
terraform: module computed vars with splat vars don't error
2015-06-25 08:49:05 -07:00
Jeff Mitchell edbc578316 As discussed on the issue, remove the hard-coded delay on startup in
favor of attempting to detect if the initial container ever enters
running state, and erroring out if not. It will re-check the container
once every 500ms for 15 seconds total; future work could make that
configurable.
2015-06-25 15:11:00 +00:00
Sander van Harmelen 73f9d2b5e5 Merge pull request #2487 from svanharmelen/f-provisioner-chef-hints
provisioner/chef: add an `ohai_hints` option to upload hint files
2015-06-25 17:10:47 +02:00
Sander van Harmelen 087f93604e Merge pull request #2488 from svanharmelen/d-changeme
Update CHANGELOG
2015-06-25 17:03:15 +02:00
Joshua Garnett d23f534d26 Adding support for detailed monitoring of instances 2015-06-25 10:58:28 -04:00
Sander van Harmelen 8e955b5c97 Updated again 😃
The `connection` concept is something people know right? So maybe this
would be a better description?
2015-06-25 16:58:00 +02:00
Sander van Harmelen 2c98c0c33c Update CHANGELOG
The SSH agent thing applies to all provisioners using the `ssh`
connection type, so it would be misleading to specifically write it
related to the `remote-exec` provisioner.
2015-06-25 16:47:35 +02:00
Jeff Mitchell 56cfba2509 Fix a serious problem when using links.
Links cause there to be more than one name for a container to be
returned. As a result, only looking at the first element of the
container names could cause a container to not be found, leading
Terraform to remove it from state and attempt to recreate it.
2015-06-25 14:40:03 +00:00
Jeff Mitchell 2e01e0635b When linking to other containers, introduce a slight delay; this lets
the Docker API get those containers running. Otherwise when
you try to start a container linking to them, the start command
will fail, leading to an error.
2015-06-25 14:40:03 +00:00
Sander van Harmelen 50be642a08 Merge pull request #2486 from svanharmelen/f-stream-ids
core: reverting a few lines from PR #2406
2015-06-25 16:39:40 +02:00
Radek Simko 8c866a4510 Merge pull request #2458 from TimeIncOSS/f-plan-resource-counts
Add resource sums to terraform plan
2015-06-25 15:35:34 +01:00
Sander van Harmelen 61517f68b1 Add an `ohai_hints` option to upload hint files
This option takes a list of hints that will be uploaded to the new node
before starting the initial Chef run.
2015-06-25 16:32:36 +02:00
Joshua Semar 7e05b083d3 include keys only projection type 2015-06-25 09:30:44 -05:00
Sander van Harmelen a79c987538 Reverting a few lines from PR #2406
As discussed with @mitchellh and @phinze we don’t need to randomize in
order to get infinite ID’s. When we hit the highest possible number and
add `1` it will just wrap back to `0`, which is just fine with regards
to how Terraform works and uses these ID’s.

Tested this by setting the initial value of `m.nextId` to `4294967293`
where the maximum is `4294967295 `. So with some additional logging it
clearly showed it wrapped and continued without any issues.
2015-06-25 16:28:04 +02:00
Sander van Harmelen 4c66df0dbf Merge pull request #2483 from svanharmelen/f-provisioner-chef-ostype
provisioner/chef: add an option to specifically specify the target OS
2015-06-25 16:14:23 +02:00
Paul Hinze d38fcb0026 Merge pull request #2485 from robzienert/add-app-stickiness-policy
Add missing docs to aws provider sidebar
2015-06-25 09:10:50 -05:00
Rob Zienert 1b30d6a9dc Add missing docs to aws provider sidebar 2015-06-25 09:09:08 -05:00
Clint 319486fbe8 Update CHANGELOG.md 2015-06-25 08:57:02 -05:00