From 6ba042a8f5a1ed320a5d8b1081eab1011352a753 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Thu, 24 Jul 2014 11:05:33 -0400 Subject: [PATCH] website: Adding heroku framework --- .../docs/providers/heroku/index.html.markdown | 36 ++++++++++++++++ .../providers/heroku/r/addon.html.markdown | 41 +++++++++++++++++++ website/source/layouts/heroku.erb | 34 +++++++++++++++ website/source/stylesheets/_docs.less | 1 + website/source/stylesheets/main.css | 3 ++ 5 files changed, 115 insertions(+) create mode 100644 website/source/docs/providers/heroku/index.html.markdown create mode 100644 website/source/docs/providers/heroku/r/addon.html.markdown create mode 100644 website/source/layouts/heroku.erb diff --git a/website/source/docs/providers/heroku/index.html.markdown b/website/source/docs/providers/heroku/index.html.markdown new file mode 100644 index 000000000..f1b451729 --- /dev/null +++ b/website/source/docs/providers/heroku/index.html.markdown @@ -0,0 +1,36 @@ +--- +layout: "heroku" +page_title: "Provider: Heroku" +sidebar_current: "docs-heroku-index" +--- + +# Heroku Provider + +The Heroku provider is used to interact with the +resources supported by Heroku. The provider needs to be configured +with the proper credentials before it can be used. + +Use the navigation to the left to read about the available resources. + +## Example Usage + +``` +# Configure the Heroku provider +provider "heroku" { + email = "ops@company.com" + api_key = "${var.heroku_api_key}" +} + +# Create a new applicaiton +resource "heroku_app" "default" { + ... +} +``` + +## Argument Reference + +The following arguments are supported: + +* `api_key` - (Required) Heroku API token +* `email` - (Required) Email to be notified by Heroku + diff --git a/website/source/docs/providers/heroku/r/addon.html.markdown b/website/source/docs/providers/heroku/r/addon.html.markdown new file mode 100644 index 000000000..7198f2da4 --- /dev/null +++ b/website/source/docs/providers/heroku/r/addon.html.markdown @@ -0,0 +1,41 @@ +--- +layout: "heroku" +page_title: "Heroku: heroku_addon" +sidebar_current: "docs-heroku-resource-addon" +--- + +# heroku\_addon + +Provides a Heroku Add-On resource. These can be attach +services to a Heroku app. + +## Example Usage + +``` +# Add a web-hook addon for the app +resource "heroku_addon" "webhook" { + app = "${heroku_app.foobar.name}" + plan = "deployhooks:http" + config { + url = "http://google.com" + } +} +``` + +## Argument Reference + +The following arguments are supported: + +* `app` - (Required) The Heroku app to add to. +* `plan` - (Requried) The addon to add. +* `config` - (Optional) Optional plan configuration. + +## Attributes Reference + +The following attributes are exported: + +* `id` - The ID of the add-on +* `name` - The add-on name +* `plan` - The plan name +* `provider_id` - The ID of the plan provider + diff --git a/website/source/layouts/heroku.erb b/website/source/layouts/heroku.erb new file mode 100644 index 000000000..cbf8725f9 --- /dev/null +++ b/website/source/layouts/heroku.erb @@ -0,0 +1,34 @@ +<% wrap_layout :inner do %> + <% content_for :sidebar do %> + + <% end %> + + <%= yield %> + <% end %> diff --git a/website/source/stylesheets/_docs.less b/website/source/stylesheets/_docs.less index 4b5e20707..8a01081aa 100755 --- a/website/source/stylesheets/_docs.less +++ b/website/source/stylesheets/_docs.less @@ -6,6 +6,7 @@ body.page-sub{ background-color: @light-black; } +body.layout-heroku, body.layout-digitalocean, body.layout-aws, body.layout-docs, diff --git a/website/source/stylesheets/main.css b/website/source/stylesheets/main.css index 69efff06e..0fed4aa2a 100644 --- a/website/source/stylesheets/main.css +++ b/website/source/stylesheets/main.css @@ -1110,6 +1110,7 @@ body.page-home #footer { body.page-sub { background-color: #242424; } +body.layout-heroku, body.layout-digitalocean, body.layout-aws, body.layout-docs, @@ -1117,6 +1118,7 @@ body.layout-inner, body.layout-intro { background: #242424 url('../images/sidebar-wire.png') left 62px no-repeat; } +body.layout-heroku > .container .col-md-8[role=main], body.layout-digitalocean > .container .col-md-8[role=main], body.layout-aws > .container .col-md-8[role=main], body.layout-docs > .container .col-md-8[role=main], @@ -1125,6 +1127,7 @@ body.layout-intro > .container .col-md-8[role=main] { min-height: 800px; background-color: white; } +body.layout-heroku > .container .col-md-8[role=main] > div, body.layout-digitalocean > .container .col-md-8[role=main] > div, body.layout-aws > .container .col-md-8[role=main] > div, body.layout-docs > .container .col-md-8[role=main] > div,