Files
Packer-Cn/website/source/docs/builders/profitbricks.html.md
T
2016-08-01 13:09:07 +02:00

2.6 KiB


description: | The ProfitBricks builder is able to create images for ProfitBricks cloud. layout: docs page_title: ProfitBricks Builder ...

ProfitBricks Builder

Type: profitbricks

The ProfitBricks Builder is able to create virtual machines for ProfitBricks.

-> Note: This builder is not supported by HashiCorp. Please visit ProfitBricks DevOps Central for support. You may file issues on GitHub.

Configuration Reference

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.

In addition to the options listed here, a communicator can be configured for this builder.

Required

  • 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.

  • 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.

  • image (string) - ProfitBricks volume image

Optional

  • cores (int) - Amount of CPU cores to use for this build. Defaults to 4.

  • disk_size (string) - Amount of disk space for this image. Defaults to 50gb

  • disktype (string) - Type of disk to use for this image. Defaults to HDD.

  • ram (int) - Amount of RAM to use for this image. Defalts to 2048.

  • location (string) - Defaults to us/las.

  • snapshot_name (string) - If snapshot name is not provided Packer will generate it

  • snapshot_password (string) - ????

  • ssh_key_path (string) - Path to private SSHkey. If no path to the key is provided Packer will create one under the name [snapshot_name]

  • url (string) - Endpoint for the ProfitBricks REST API

  • timeout (string) - An approximate limit on how long packer will continue making status requests while waiting for the build to complete. Set this to an integer where 1 equals 10 seconds. Default value 50.

Example

Here is a basic example:

{
  "builders": [
    {
      "image": "Ubuntu-16.04",
      "type": "profitbricks",
      "disk_size": "5",
      "snapshot_name": "double",
      "ssh_key_path": "/path/to/private/key",
      "snapshot_password": "test1234",
      "timeout": 100
    }
  ]
}