2016-08-01 07:09:07 -04:00
---
description: |
The ProfitBricks builder is able to create images for ProfitBricks cloud.
layout: docs
page_title: ProfitBricks Builder
...
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
# ProfitBricks Builder
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
Type: `profitbricks`
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
The ProfitBricks Builder is able to create virtual machines for [ProfitBricks ](https://www.profitbricks.com ).
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
-> **Note:** This builder is not supported by HashiCorp. Please visit [ProfitBricks DevOps Central ](https://devops.profitbricks.com/ ) for support. You may file issues on [GitHub ](https://github.com/profitbricks/packer-builder-profitbricks/issues ).
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
## Configuration Reference
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
There are many configuration options available for the builder. They are
segmented below into two categories: required and optional parameters. Within
each category, the available configuration keys are alphabetized.
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
In addition to the options listed here, a
[communicator ](/docs/templates/communicator.html ) can be configured for this
builder.
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
### Required
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `image` (string) - ProfitBricks volume image
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
- `password` (string) - ProfitBrucks password. This can be specified via environment variable `PROFITBRICKS_PASSWORD', if provided. The value definded in the config has precedence over environemnt variable.
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `username` (string) - ProfitBricks username. This can be specified via environment variable `PROFITBRICKS_USERNAME', if provided. The value definded in the config has precedence over environemnt variable.
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
### Optional
2016-07-07 04:28:46 -04:00
2016-08-31 07:55:11 -04:00
- `cores` (integer) - Amount of CPU cores to use for this build. Defaults to "4".
2016-07-01 08:28:29 -04:00
2016-09-13 06:06:45 -04:00
- `disk_size` (string) - Amount of disk space for this image. Defaults to "50"
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `disk_type` (string) - Type of disk to use for this image. Defaults to "HDD".
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `location` (string) - Defaults to "us/las".
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `ram` (integer) - Amount of RAM to use for this image. Defalts to "2048".
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
- `snapshot_name` (string) - If snapshot name is not provided Packer will generate it
2016-07-01 08:28:29 -04:00
2016-08-31 07:55:11 -04:00
- `snapshot_password` (string) - Password for the snapshot.
2016-08-01 07:09:07 -04:00
2016-08-31 07:55:11 -04:00
- `timeout` (string) - An approximate limit on how long Packer will continue making status requests while waiting for the build to complete. Default value 120 seconds.
2016-08-01 07:09:07 -04:00
2016-08-31 07:55:11 -04:00
- `url` (string) - Endpoint for the ProfitBricks REST API. Default URL "https://api.profitbricks.com/rest/v2"
2016-07-01 08:28:29 -04:00
2016-07-07 04:28:46 -04:00
2016-08-01 07:09:07 -04:00
## Example
2016-07-01 08:28:29 -04:00
2016-08-01 07:09:07 -04:00
Here is a basic example:
2016-07-07 04:28:46 -04:00
2016-08-01 07:09:07 -04:00
```json
2016-07-01 08:28:29 -04:00
{
"builders": [
{
"image": "Ubuntu-16.04",
2016-08-01 07:09:07 -04:00
"type": "profitbricks",
"disk_size": "5",
"snapshot_name": "double",
"ssh_key_path": "/path/to/private/key",
"snapshot_password": "test1234",
"timeout": 100
2016-07-01 08:28:29 -04:00
}
2016-08-01 07:09:07 -04:00
]
2016-07-01 08:28:29 -04:00
}
2016-08-01 07:09:07 -04:00
```