Commit Graph

4542 Commits

Author SHA1 Message Date
Josh Bleecher Snyder 745d83a995 providers: add template provider
Fixes #215.
2015-05-01 16:59:49 -07:00
Paul Hinze 15c75c501f Merge pull request #1483 from svanharmelen/f-winrm-support
core: add WinRM support
2015-05-01 15:56:53 -05:00
Sander van Harmelen e55169b39b Typo... 2015-05-01 22:28:12 +02:00
Sander van Harmelen 7f408cf8aa Adding an import needed for the tests
This will likely be a temp fix until `make updated eps` is made a
little smarter by @phinze 😉
2015-05-01 22:26:11 +02:00
Paul Hinze 8d953eae82 Merge pull request #1771 from hashicorp/b-fix-acctest
helper/resource/testing: unit tests to cover #1770
2015-05-01 12:38:06 -05:00
Sander van Harmelen a1a1ea5cf9 Removing stray comments/commands 2015-05-01 18:52:01 +02:00
Sander van Harmelen b6660a1abe Updated test as the winrmtest package was tweaked a little...
The winrmtest package update is merged now, so this can be merged now
as well…
2015-05-01 18:52:01 +02:00
Sander van Harmelen 2689601bc3 And here are the tests...
Pretty nice test coverage this way, covering all WinRM actions/logic by
using the winrmtest package. I had to extend/update/fix that package a
little here and there, but it now serves a nice purpose for testing
WinRM stuff…
2015-05-01 18:52:01 +02:00
Sander van Harmelen 41748003c0 Updated the PR according to the review comments
* We now return an error when you set the script_path to
C:\Windows\Temp explaining this is currently not supported
* The fix in PR #1588 is converted to the updated setup in this PR
including the unit tests

Last thing to do is add a few tests for the WinRM communicator…
2015-05-01 18:52:01 +02:00
Sander van Harmelen 907eee24f2 Updating the docs 2015-05-01 18:50:57 +02:00
Sander van Harmelen 4a29c714e5 Adding support for WinRM 2015-05-01 18:48:54 +02:00
Sander van Harmelen b1c6a3f63f Few small fixes to make the last tests also pass
The reason why the shebang is removed from these tests, is because the
shebang is only needed for SSH/Linux connections. So in the new setup
the shebang line is added in the SSH communicator instead of in the
resource provisioner itself…
2015-05-01 18:48:54 +02:00
Sander van Harmelen c9e9e374bb Adding some abstractions for the communicators
This is needed as preperation for adding WinRM support. There is still
one error in the tests which needs another look, but other than that it
seems like were now ready to start working on the WinRM part…
2015-05-01 18:48:54 +02:00
Paul Hinze 88744d569f helper/resource/testing: unit tests to cover #1770
Also clarified that final return value of testStep is now only for the
happy path.
2015-05-01 11:22:06 -05:00
Paul Hinze 5d07394971 Merge pull request #1770 from hashicorp/b-fix-acctest
helper/resource: fix accidentaly swallowing of acctest step errors
2015-05-01 11:15:37 -05:00
Paul Hinze dbf6d1bd00 helper/resource: fix accidentaly swallowing of acctest step errors
With #1757 I unwittingly reused an err variable, causing all test check
errors to be swallowed. -_-
2015-05-01 11:11:16 -05:00
Paul Hinze e3616d391a Update CHANGELOG.md 2015-04-30 17:43:41 -05:00
Paul Hinze d230cfb907 Merge pull request #1721 from managedbyq/aws_dhcp_options
providers/aws: Implements DHCP Options Set support.
2015-04-30 17:13:15 -05:00
Camilo Aguilar 338ae601bc providers/aws: Implements DHCP Options Set support. 2015-04-30 17:52:04 -04:00
Mitchell Hashimoto a8165fea11 update CHANGELOG 2015-04-30 14:36:57 -07:00
Mitchell Hashimoto 12a088f6c5 Merge pull request #1744 from hashicorp/b-module-output-validate
config: add module raw configs to InterpolatedConfigs [GH-1448]
2015-04-30 14:36:33 -07:00
Paul Hinze 430e00c55c Merge pull request #1763 from hashicorp/b-fix-1699
core: fix targeting with non-word chars
2015-04-30 16:34:19 -05:00
Mitchell Hashimoto bd7d73791e update CHANGELOG 2015-04-30 14:27:51 -07:00
Mitchell Hashimoto aaf94e7cec Merge pull request #1745 from hashicorp/b-openstack-bool
provider/openstack: enable_dhcp should be bool [GH-1741]
2015-04-30 14:27:14 -07:00
Paul Hinze f843370f13 Update CHANGELOG.md 2015-04-30 16:10:50 -05:00
Paul Hinze a9de720a4e Merge pull request #1708 from hashicorp/f-elb-source-security-group
providers/aws: add source_security_group to elb
2015-04-30 16:10:02 -05:00
Paul Hinze 754eb8c77d Update CHANGELOG.md 2015-04-30 16:09:50 -05:00
Paul Hinze d30d88e327 Merge pull request #1655 from hashicorp/f-build-graph-during-plan
core: validate on verbose graph to detect some cycles earlier
2015-04-30 16:08:33 -05:00
Paul Hinze 01450b420f Update CHANGELOG.md 2015-04-30 16:05:31 -05:00
Paul Hinze 443c7e053f Merge pull request #1544 from hashicorp/b-destroy-target-provisioner
core: fix resource targeting w/ provisioners
2015-04-30 16:03:17 -05:00
Paul Hinze 9295e1eca6 core: fix targeting with non-word chars
Flips the regex strategy to capture everything that's _not_ the next
separator instead of whitelisting `\w`

fixes #1699
2015-04-30 15:49:37 -05:00
Mitchell Hashimoto 1061bbfbfe update CHANGELOG 2015-04-30 13:27:28 -07:00
Mitchell Hashimoto c1ea4adae5 Merge pull request #1734 from hashicorp/b-output-orphan
Track orphaned outputs in the graph [GH-1714]
2015-04-30 13:26:59 -07:00
Mitchell Hashimoto 152298bcf0 update CHANGELOG 2015-04-30 13:26:42 -07:00
Mitchell Hashimoto af5ac59188 Merge pull request #1723 from apparentlymart/s3remotestate
S3 Remote State Backend
2015-04-30 13:25:33 -07:00
Paul Hinze 70491a7874 Merge pull request #1661 from hashicorp/f-graph-cycles
core: graph command gets -verbose and -draw-cycles
2015-04-30 15:24:05 -05:00
Mitchell Hashimoto 5d2f735604 Merge pull request #1761 from hashicorp/d-provider-code-block-style
docs: Fix styling in provider code block
2015-04-30 13:18:41 -07:00
Paul Hinze 043387fc8f docs: Fix styling in provider code block
Font was different from rest of the page and very weird lookin'
2015-04-30 14:50:21 -05:00
Paul Hinze 99ce760569 Merge pull request #1756 from hashicorp/f-input-env-var
command: add env var equivalent to -input arg
2015-04-30 14:36:59 -05:00
Paul Hinze 0d0e40fd7b Merge pull request #1757 from hashicorp/f-acctest-refresh-and-plan-after-each-step
helper/resource: verify refresh+plan after each step
2015-04-30 14:33:44 -05:00
Clint 76e897fedb Merge pull request #1753 from hashicorp/f-aws-db-subnet-name
provider/aws: Fix refresh/plan issue with DB Param. Group name
2015-04-30 13:42:06 -05:00
Paul Hinze 149e52ad1f helper/resource: verify refresh+plan after each step
I forgot to add `Computed: true` when I made the "key_name" field
optional in #1751.

This made the behavior:

 * Name generated in Create and set as ID
 * Follow up plan (without refresh) was nice and empty
 * During refresh, name gets cleared out on Read, causing a bad diff on
   subsequent plans

We can automatically catch bugs like this if we add yet another
verification step to our resource acceptance tests -> a post
Refresh+Plan that we verify is empty.

I left the non-refresh Plan verification in, because it's important that
_both_ of these are empty after an Apply.
2015-04-30 12:52:25 -05:00
Paul Hinze a21f320b8e Update CHANGELOG.md 2015-04-30 12:16:40 -05:00
Paul Hinze 7ff18ececf Merge pull request #1751 from hashicorp/f-aws-key-name-gen-name
provider/aws: allow key_pair name to be generated
2015-04-30 12:15:39 -05:00
Clint 07e65ff803 Merge pull request #1755 from hashicorp/changlog-update-0.5.0-cts
Update CHANGELOG
2015-04-30 11:41:33 -05:00
Martin Atkins 53e93d6f63 S3 remote stage storage backend, against the new remote state API.
Stores state in a particular key in a given S3 bucket.
2015-04-30 09:21:49 -07:00
Paul Hinze b99611fa44 provider/aws: allow key_pair name to be generated
As a module author, I'd like to be able to create a module that includes
a key_pair.  I don't care about the name, I only know I don't want it to
collide with anything else in the account.

This allows my module to be used multiple times in the same account
without having to do anything funky like adding a user-specified unique
name parameter.
2015-04-30 10:33:14 -05:00
Clint Shryock 206323b630 adjust wording 2015-04-30 10:01:46 -05:00
Clint 89b50f7790 Merge pull request #1754 from ctiwald/ct/vpn-gateway-doc-fix
docs: vpn_gateway vpc_ids are optional, not required.
2015-04-30 09:59:56 -05:00
Paul Hinze 5f1ea7fccc command: add env var equivalent to -input arg
Setting TF_INPUT has the equivalent effect of setting the flag.
I got sick of specifying this when iterating on TF config locally.
2015-04-30 09:59:14 -05:00