Merge pull request #7040 from jritsema/master

Clarify HTTP URL module source docs
This commit is contained in:
Paul Hinze 2016-06-10 16:56:00 -05:00 committed by GitHub
commit 133b65d2ca
1 changed files with 12 additions and 3 deletions

View File

@ -29,6 +29,8 @@ Terraform supports the following sources:
* HTTP URLs
Note that all remote modules are git-based. The `HTTP URL` source redirects terraform to use another one of the sources.
Each is documented further below.
## Local File Paths
@ -194,8 +196,9 @@ parameters:
## HTTP URLs
Any HTTP endpoint can serve up Terraform modules. For HTTP URLs (SSL is
supported, as well), Terraform will make a GET request to the given URL.
An HTTP URL can be used to redirect Terraform to get the module source from
one of the other sources. For HTTP URLs (SSL is supported, as well),
Terraform will make a GET request to the given URL.
An additional GET parameter `terraform-get=1` will be appended, allowing
you to optionally render the page differently when Terraform is requesting it.
@ -208,6 +211,12 @@ If the header isn't present, Terraform will look for a `<meta>` tag
with the name of "terraform-get". The value will be used as the source
URL.
Example:
```
<meta name=“terraform-get” content="github.com/hashicorp/example" />
```
## Forced Source Type
In a couple places above, we've referenced "forced source type." Forced