Commit Graph

20101 Commits

Author SHA1 Message Date
James Bardin
52dbf94834 keep .terraform.d/plugins for discovery 2017-08-09 17:46:49 -04:00
James Bardin
54998933f5 load Meta.PluginOverrides in dicovery
Make sure the override paths from the legacy rc file are loaded for
discovery.
2017-08-09 11:14:33 -04:00
James Bardin
fa20d43d80 test loading of Meta.PluginOverrides
These are currently being skipped in discovery
2017-08-09 11:13:54 -04:00
James Bardin
41ab0aef7a Add missing OS_ARCH dir to global plugin paths
When the global directory was added, the discovery system still
attempted to search for OS_ARCH subdirectories. It has since been
changed only search explicit paths.
2017-08-09 10:34:11 -04:00
Clint
8b3b678c2f Merge pull request #15760 from alex1x/master
Fix titles on partner contact table on provider development program guide
2017-08-08 10:38:46 -05:00
Alex Tasioulis
5f3e76203b Fix titles on partner contact table on provider development program guide
"Website" and "Email" were the wrong way around.
2017-08-08 16:19:49 +01:00
James Bardin
5769ee745d Merge pull request #15738 from hashicorp/jbardin/s3-key-validation
don't allow leading slashes in s3 remote state key
2017-08-08 09:48:20 -04:00
James Bardin
4c7cd549cd don't allow leading slashes in s3 remote state key
S3 accepts objects with a leading slash and strips them off. This works
fine except in our workspace hierarchy, which then can no longer find
suffixes matching the full key name.
2017-08-08 09:47:44 -04:00
James Bardin
56240023a9 Merge pull request #15755 from hashicorp/jbardin/init-docs
plugin docs
2017-08-08 09:14:08 -04:00
James Bardin
a56a97a5f5 mention 'terraform.d/plugins` for automation 2017-08-07 17:35:16 -04:00
James Bardin
2597500b47 reword init documentation for consistency
Reword the paragraph to match the voice and point of view of the rest of
the section. Use the term general termn "plugin" rather than "provider"
2017-08-07 17:28:11 -04:00
Clint
399856001a Merge pull request #15745 from ctavan/improve-provider-plugin-docs
Document how to provide provider plugin overrides
2017-08-07 14:40:14 -05:00
Clint
77f74c37c8 Merge pull request #15749 from gregswift/typo-additional
Fix typo of additional
2017-08-07 11:50:33 -05:00
Greg Swift
944a9301df Fix typo of additional 2017-08-07 11:47:42 -05:00
Clint
50108d305d Merge pull request #15748 from kbrowns/patch-1
small typo correction
2017-08-07 11:27:33 -05:00
Kelly Brownsberger
40bb7612c1 small typo correction
'used used' => 'used'
2017-08-07 11:52:04 -04:00
Radek Simko
59c9ca5b96 Merge pull request #15737 from josephholsten/clean-vendor
vendor: rm unused
2017-08-07 17:33:47 +02:00
Christoph Tavan
b413061fd8 Document how to provide provider plugin overrides
The docs did not mention that it is possible to provide overrides for specific
plugins by placing them into a `terraform.d/plugins/os_arch/` directory inside
the working dir.

Closes #15727.
2017-08-07 10:53:40 +02:00
Joseph Anthony Pasquale Holsten
153202c3b0 vendor: rm github.com/hashicorp/golang-lru(/simplelru) 2017-08-04 13:25:02 -07:00
Joseph Anthony Pasquale Holsten
eccfa6de5c vendor: rm github.com/hashicorp/go-msgpack/codec 2017-08-04 13:23:08 -07:00
Joseph Anthony Pasquale Holsten
05ce58279e vendor: rm github.com/armon/go-metrics 2017-08-04 13:22:52 -07:00
Radek Simko
3db3502487 Update CHANGELOG.md 2017-08-04 22:05:46 +02:00
Radek Simko
4acdc53a56 Merge pull request #15695 from radeksimko/f-config-reserve-id
config: Make 'id' a reserved field name
2017-08-04 22:04:14 +02:00
James Bardin
550197db50 Merge pull request #15698 from cblecker/go1.8.3
build: Update travis and Vagrantfile go versions
2017-08-04 12:15:24 -04:00
James Bardin
11668d5c8a Merge pull request #15599 from alrs/terraform-tests-swallowed-errors
Fix swallowed tests in terraform package tests
2017-08-04 12:09:00 -04:00
Jake Champlin
66971cef70 Update CHANGELOG.md 2017-08-03 18:07:08 -04:00
Jake Champlin
3600f0b730 Merge pull request #15723 from hashicorp/f-get-boolean-non-default
core: Add `GetOkExists` schema function
2017-08-03 18:06:17 -04:00
Jake Champlin
d969f97e73 update tests 2017-08-03 17:53:07 -04:00
James Bardin
e76049eb0a update CHANGELOG.md 2017-08-03 15:53:08 -04:00
Jake Champlin
fa272e8c9c Add more specific exists tests 2017-08-03 14:14:39 -04:00
James Bardin
eadda50f02 Merge pull request #15652 from hashicorp/jbardin/state-command
state commands with remote state backends
2017-08-03 13:29:45 -04:00
James Bardin
8a8b43185d Merge pull request #15663 from hashicorp/jbardin/diff-field-reader
memoize DiffFieldReader.ReadField
2017-08-03 13:25:39 -04:00
James Bardin
55d18dcef2 update state rm amd mv docs
Update the documentation to match the current behavior, and make the
usage output and website docs match.
2017-08-03 13:24:23 -04:00
James Bardin
dc30761497 Merge pull request #15567 from hashicorp/jbardin/consul-update
Update consul vendor and remote state
2017-08-03 13:20:31 -04:00
Jake Champlin
268138dbd4 Rename to GetOkExists 2017-08-03 12:05:19 -04:00
Radek Simko
6339f950c7 Merge pull request #15722 from hashicorp/b-remove-verbose-debug-log
Remove overly verbose DEBUG log
2017-08-03 17:48:40 +02:00
Radek Simko
de3015cebf Remove overly verbose DEBUG log 2017-08-03 16:11:45 +02:00
Radek Simko
fb50afb0a1 Merge pull request #15708 from nfagerlund/aug2017_consul_example_link
Docs: Fix broken links and a broken example
2017-08-03 08:23:01 +02:00
Nick Fagerlund
8c7bfde292 Docs: Fix broken links and a broken example
These links were casualties of the core/provider split. There was also
an example that suggested cloning a subdirectory of a git repo.
2017-08-02 20:03:41 -07:00
Jake Champlin
ed5bbacab9 Merge pull request #15702 from hashicorp/f-update-dockerfile
update dockerfile to not include version prerelease string
2017-08-02 19:52:01 -04:00
Jake Champlin
3db869b7fe update dockerfile to not include version prerelease string 2017-08-02 19:49:56 -04:00
Christoph Blecker
473d08d532 Update Vagrantfile to go1.8.3 2017-08-02 12:56:35 -07:00
Christoph Blecker
29b77cabec Update travis to go1.8.3 and add testing for go1.9rc1 2017-08-02 12:56:21 -07:00
Jake Champlin
8e6a0845c1 Cleanup after 0.10 release 2017-08-02 14:40:37 -04:00
Jake Champlin
2041053ee9 v0.10.0 2017-08-02 14:39:14 -04:00
Radek Simko
67ceb1ab07 config: Make 'id' a reserved field name 2017-08-02 20:02:44 +02:00
James Bardin
94a1ca7341 move 0.10.0 (Unreleased) for release script 2017-08-02 12:09:50 -04:00
James Bardin
e3e6eee311 Merge pull request #15691 from hashicorp/jbardin/changelog
update CHANGELOG for 0.10.0
2017-08-02 11:41:45 -04:00
James Bardin
6134082a10 update CHANGELOG for 0.10.0 2017-08-02 11:32:13 -04:00
Jake Champlin
270bbdb19b core: Add GetOkRaw schema function
Adds `GetOkRaw` as a schema function. This should only be used to verify
boolean attributes are either set or not set, regardless of their zero
value for their type. There are a few small use cases outside of the boolean
type where this will be helpful as well.

Overall, this shouldn't detract from the zero-value checks that `GetOK()`
currently has, and should only be used when absolutely needed. However,
there are enough use-cases for this addition without checking for the
zero-value of the type, that this is needed.

Primary use case is for a boolean attribute that is `Optional` and `Computed`,
without a default value. There's currently no way to verify that the boolean
attribute was explicitly set to the zero-value literal with the current
`GetOk()` function. This new function allows for that check, keeping the
`Computed` check for the returned `exists` boolean.

```
$ make test TEST=./helper/schema TESTARGS="-run=TestResourceDataGetOkRaw"
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /terraform/vendor/)
2017/08/02 11:17:32 Generated command/internal_plugin_list.go
go test -i ./helper/schema || exit 1
echo ./helper/schema | \
        xargs -t -n4 go test -run=TestResourceDataGetOkRaw -timeout=60s -parallel=4
go test -run=TestResourceDataGetOkRaw -timeout=60s -parallel=4 ./helper/schema
ok      github.com/hashicorp/terraform/helper/schema    0.005s
```
2017-08-02 11:18:59 -04:00