terraform/website
James Nugent cb6cb8b96a core: Support explicit variable type declaration
This commit adds support for declaring variable types in Terraform
configuration. Historically, the type has been inferred from the default
value, defaulting to string if no default was supplied. This has caused
users to devise workarounds if they wanted to declare a map but provide
values from a .tfvars file (for example).

The new syntax adds the "type" key to variable blocks:

```
variable "i_am_a_string" {
    type = "string"
}

variable "i_am_a_map" {
    type = "map"
}
```

This commit does _not_ extend the type system to include bools, integers
or floats - the only two types available are maps and strings.

Validation is performed if a default value is provided in order to
ensure that the default value type matches the declared type.

In the case that a type is not declared, the old logic is used for
determining the type. This allows backwards compatiblity with previous
Terraform configuration.
2016-01-24 11:40:02 -06:00
..
.bundle Use HTTPS + www. for links 2016-01-14 16:03:26 -05:00
helpers Do matching in sidebar_current via regex or equal sign 2015-05-08 10:40:51 +01:00
scripts Add new Atlas deploy scripts 2016-01-14 16:00:36 -05:00
source core: Support explicit variable type declaration 2016-01-24 11:40:02 -06:00
Gemfile Fix issues building documentation behind corporate filewall on Windows. 2015-07-09 11:07:45 -04:00
Gemfile.lock Add Gemfile.lock 2016-01-14 16:03:30 -05:00
LICENSE.md website: initial commit 2014-07-16 17:51:48 -04:00
Makefile fix Makefile 2015-09-24 11:48:52 -07:00
README.md Update README to point to Makefile 2015-09-24 09:57:38 -07:00
Vagrantfile provider/azurerm: Clean up work for base provider 2015-12-15 18:31:02 -05:00
config.rb v0.6.9 2016-01-08 17:43:57 +00:00
config.ru Add Rack::Protection 2015-07-13 12:50:17 -04:00
packer.json Add new Atlas deploy scripts 2016-01-14 16:00:36 -05:00

README.md

Terraform Website

This subdirectory contains the entire source for the Terraform Website. This is a Middleman project, which builds a static site from these source files.

Contributions Welcome

If you find a typo or you feel like you can improve the HTML, CSS, or JavaScript, we welcome contributions. Feel free to open issues or pull requests like any normal GitHub project, and we'll merge it in.

Running the Site Locally

Running the site locally is simple. First you need a working copy of Ruby >= 2.0 and Bundler. Then you can clone this repo and run make dev.

Then open up http://localhost:4567. Note that some URLs you may need to append ".html" to make them work (in the navigation).