Commit Graph

6652 Commits

Author SHA1 Message Date
Paul Hinze ef5b6e93a9 provider/azure: fix issues loading config from homedir
Issues were:

 * `settings_file` `ValidateFunc` needs to expand homedir just like the
   `configure` does, otherwise ~-based paths fail validation
 * `isFile` was being called before ~-expand so configure was failing as well
 * `Config` was swallowing error so provider was ending up with `nil`,
   resulting in crash

To fix:

 * Consolidate settings_file path/contents handling into a single helper
   called from both `validate` and `configure` funcs
 * Return err from `Config`

To cover:

 * Added test case to validate w/ tilde-path
 * Added configure test w/ tilde-path
2015-10-13 16:57:11 -05:00
Paul Hinze 7549872780 Update CHANGELOG.md 2015-10-12 17:20:05 -05:00
Paul Hinze 2978a9fb52 Merge pull request #3485 from hashicorp/b-aws-asg-force-delete
provider/aws: fix force_delete on ASGs
2015-10-12 17:18:38 -05:00
Paul Hinze a811a72f11 provider/aws: fix force_delete on ASGs
The `ForceDelete` parameter was getting sent to the upstream API call,
but only after we had already finished draining instances from
Terraform, so it was a moot point by then.

This fixes that by skipping the drain when force_delete is true, and it
also simplifies the field config a bit:

 * set a default of false to simplify the logic
 * remove `ForceNew` since there's no need to replace the resource to
   flip this value
 * pull a detail comment from code into the docs
2015-10-12 17:10:01 -05:00
Clint 8df9d706fb Merge pull request #3488 from hashicorp/b-aws-sgrule-migrate-test
update migration test
2015-10-12 16:34:44 -05:00
Clint 307902ec2d Update CHANGELOG.md 2015-10-12 16:34:16 -05:00
Clint a1f2b824cc Merge pull request #3470 from hashicorp/b-aws-key-pair-key-sig
provider/aws: Migrate KeyPair to version 1
2015-10-12 16:33:24 -05:00
Clint Shryock c44e9d10a4 update migration test 2015-10-12 16:26:49 -05:00
Clint Shryock 31b8f04bda provider/aws: Migrate KeyPair to version 1 2015-10-12 16:04:51 -05:00
Clint 8d84369738 Update CHANGELOG.md 2015-10-12 16:03:43 -05:00
Clint ad42313dad Merge pull request #3019 from hashicorp/b-aws-sg-rules-v2
provider/aws: Update Security Group Rules to Version 2
2015-10-12 16:03:12 -05:00
Clint Shryock 9f3a17e9b4 update sg rule ids 2015-10-12 15:51:47 -05:00
Clint Shryock 03aac9f42b Expand on an error case with more descriptive error 2015-10-12 15:51:21 -05:00
Clint Shryock e0bb04b822 update expeded hash for migration test 2015-10-12 15:51:21 -05:00
Clint Shryock d3c5c0d85f provider/aws: Update Security Group Rules to Version 2 2015-10-12 15:51:21 -05:00
Clint Shryock 810d088279 Fix whitespace formatting with go fmt 2015-10-12 15:50:04 -05:00
Paul Hinze ed25948651 Update CHANGELOG.md 2015-10-12 14:24:57 -05:00
Clint 9f106bc98e Update CHANGELOG.md 2015-10-12 14:24:14 -05:00
Paul Hinze 61721387b3 Merge pull request #3457 from TimeIncOSS/f-aws-ec2-placement-groups
provider/aws: Add support for EC2 Placement Group
2015-10-12 14:24:12 -05:00
Clint 8152f5822e Merge pull request #3265 from stack72/aws-s3-bucket-update
provider/aws: Adding some other simple S3 Bucket Object (Optional) Inputs
2015-10-12 14:23:29 -05:00
Paul Hinze 8436931cec Update CHANGELOG.md 2015-10-12 11:44:53 -05:00
Martin Atkins 344fef7099 Update CHANGELOG.md 2015-10-12 09:39:48 -07:00
Martin Atkins 51630aea26 Merge #3397: Tags for AWS Kinesis Streams 2015-10-12 09:38:09 -07:00
Garrett Heel 36f78cc1dc provider/aws: Allow tags for kinesis streams 2015-10-12 09:00:56 -07:00
stack72 3809cb5b88 Fixing the merge conflicts on the s3 bucket object resource after another PR had been merged 2015-10-12 16:51:27 +01:00
Paul Hinze d3137b90da Update CHANGELOG.md 2015-10-12 10:14:15 -05:00
Paul Hinze f77373207c Merge pull request #3419 from rakutentech/add-vsphere-provider
Add VMware vSphere provider
2015-10-12 10:13:38 -05:00
Paul Hinze 299b673eeb Update CHANGELOG.md 2015-10-12 07:07:56 -05:00
Paul Hinze 22681c3db2 Merge pull request #3284 from stack72/do_size_slug
provider/digitalocean - Droplet Size Lowercase
2015-10-12 07:06:53 -05:00
Martin Atkins e8cfc5eca2 Update CHANGELOG.md 2015-10-11 23:01:20 -07:00
Martin Atkins 091d3fe206 Merge #3351: aws_autoscaling_lifecycle_hook resource 2015-10-11 22:52:00 -07:00
Takaaki Furukawa f34628de54 Refactor ResourceData, pluralize some arguments and add error check in d.Set for complex types 2015-10-12 13:06:29 +09:00
Jonathan Leibiusky 57c80a0d46 Add support for aws autoscaling lifecycle hooks. 2015-10-11 20:42:40 -03:00
stack72 7d600cadd2 Adding the docs for the autoscaling_lifecycle_hook 2015-10-11 20:42:14 -03:00
Martin Atkins 3db76ce287 Revert "Grafana provider"
This reverts commit 719e8c956e,
which was accidentally included in a merge.
2015-10-11 16:01:20 -07:00
Martin Atkins 3af5552b54 Makefile target to build a single plugin for local testing.
Often when developing a plugin it's only necessary to rebuild that plugin.
Here we add a simple Makefile target that makes that easy:

    make plugin-dev PLUGIN=provider-aws

Since it's only building one package and it's only building for the
host architecture, this just uses "go install" directly, rather than using
gox as we do when installing multiple packages, possibly for multiple
architectures.
2015-10-11 14:24:23 -07:00
Martin Atkins 719e8c956e Grafana provider 2015-10-11 13:50:25 -07:00
Martin Atkins 200a42ab46 Documentation of TF_LOG taking log levels.
As of 0090c063e it is now possible to filter the logs by level by setting
TF_LOG to one of the known log level names.
2015-10-11 10:56:45 -07:00
Martin Atkins ca583928e7 Update CHANGELOG.md 2015-10-11 10:48:57 -07:00
Martin Atkins 11aa0cda5a Merge #3380: Filter logs by log level in TF_LOG 2015-10-11 10:46:03 -07:00
Martin Atkins 8173cd25bb Demote some log lines to DEBUG.
Now that we support log line filtering (as of 0090c063) it's good to be
a bit more fussy about what log levels are assigned to different things.

Here we make a few things that are implementation details log as DEBUG,
and prevent spurious errors from EvalValidateCount where it was returning
an empty EvalValidateError rather than nil when everything was okay.
2015-10-11 10:45:33 -07:00
Fatih Arslan 0090c063e8 log: support for user defined log levels
This PR brings support for better log level handling. Terraform logs
are already written in the form which can be understood by the module
https://github.com/hashicorp/logutils .

The TF_LOG environment variable now accepts a log level. Users can pass
levels in the form of "info", "Info" or "INFO" If an invalid log level is
passed, we print a warning but still continue, for backward compatibility
with the old TF_LOG=1 style.
2015-10-11 10:29:00 -07:00
Martin Atkins 8f237a7256 Update CHANGELOG.md 2015-10-11 09:34:27 -07:00
Martin Atkins 80e77bb89e Merge pull request #3479 from elblivion/add-interpolate-docs
Add documentation for compact()
2015-10-11 09:34:05 -07:00
Anthony Stanton b62833e7b8 Add documentation for compact() 2015-10-11 16:47:48 +02:00
Martin Atkins 44135b9d89 Update CHANGELOG.md 2015-10-10 18:11:30 -07:00
Martin Atkins b7247026e9 Merge #3228: aws_directory_service_directory resource 2015-10-10 18:09:17 -07:00
Martin Atkins fd0174b031 Merge pull request #3415 from apparentlymart/heredoc-docs
Document that heredoc syntax is supported
2015-10-10 17:32:27 -07:00
Martin Atkins a97036f3a3 Merge pull request #3383 from apparentlymart/docker-container-command-docs
Example for the command arg on docker_container.
2015-10-10 17:30:33 -07:00
Martin Atkins 6a4bcacbc4 Merge pull request #3087 from berendt/openstack-networking
examples: add OpenStack configuration with networking
2015-10-10 17:29:28 -07:00