Files
opentf/website/source/docs/providers/profitbricks/index.html.markdown
Jasmin Gacic d2aaa4557d provider/profitbricks Doc update (#11643)
* Terraform ProfitBricks Builder

* make fmt

* Merge remote-tracking branch 'upstream/master' into terraform-provider-profitbricks

# Conflicts:
#	command/internal_plugin_list.go

* Addressing PR remarks

* Removed importers

* Added ProfitBricks Data Sources

* Added documentation

* Updated to REST v3:
- nat parameter for Nics
- availabilityZone for Volumes

Minor code clean up

* Minor code clean up

* Fixed typo in volume documentation

* make fmt

* Addressing requested changes

* Added a step in load balancer tests in CheckDestroy where we are making sure that the test doesn't leave dangling resources in ProfitBricks

* Changed expected image name

* Fixed data center test
Code clean up

* Added missing parameter to ProfitBricks provider docs.
2017-02-02 19:49:18 +00:00

1.6 KiB

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
profitbricks Provider: ProfitBricks docs-profitbricks-index A provider for ProfitBricks.

ProfitBricks Provider

The ProfitBricks provider gives the ability to deploy and configure resources using ProfitBricks Cloud API.

Use the navigation to the left to read about the available resources.

Usage

The provider needs to be configured with proper credentials before it can be used.

$ export PROFITBRICKS_USERNAME="profitbricks_username" 
$ export PROFITBRICKS_PASSWORD="profitbricks_password"
$ export PROFITBRICKS_API_URL="profitbricks_rest_url"

Or you can provide your credentials like this:

The credentials provided in .tf file will override credentials in the environment variables.

Example Usage

provider "profitbricks" {
    username = "profitbricks_username"
    password = "profitbricks_password"
    endpoint = "profitbricks_rest_url"
    retries = 100
}


resource "profitbricks_datacenter" "main" {
  ...
}   

Configuration Reference

The following arguments are supported:

  • username - (Required) If omitted, the PROFITBRICKS_USERNAME environment variable is used.

  • password - (Required) If omitted, the PROFITBRICKS_PASSWORD environment variable is used.

  • endpoint - (Required) If omitted, the PROFITBRICKS_API_URL environment variable is used.

  • retries - (Optional) Number of retries while waiting for a resource to be provisioned. Default value is 50.

#Support You are welcome to contact us with questions or comments at ProfitBricks DevOps Central.