github.com/amanya/packer@v0.12.1-0.20161117214323-902ac5ab2eb6/website/source/docs/builders/profitbricks.html.md (about)

     1  ---
     2  description: |
     3      The ProfitBricks builder is able to create images for ProfitBricks cloud.
     4  layout: docs
     5  page_title: ProfitBricks Builder
     6  ...
     7  
     8  # ProfitBricks Builder
     9  
    10  Type: `profitbricks`
    11  
    12  The ProfitBricks Builder is able to create virtual machines for [ProfitBricks](https://www.profitbricks.com).
    13  
    14  ## Configuration Reference
    15  
    16  There are many configuration options available for the builder. They are
    17  segmented below into two categories: required and optional parameters. Within
    18  each category, the available configuration keys are alphabetized.
    19  
    20  In addition to the options listed here, a
    21  [communicator](/docs/templates/communicator.html) can be configured for this
    22  builder.
    23  
    24  ### Required
    25  
    26  -   `image` (string) - ProfitBricks volume image. Only Linux public images are supported. Defaults to "Ubuntu-16.04". To obtain full list of available images you can use [ProfitBricks CLI](https://github.com/profitbricks/profitbricks-cli#image). 
    27  
    28  -   `password` (string) - ProfitBricks password. This can be specified via environment variable `PROFITBRICKS_PASSWORD', if provided. The value definded in the config has precedence over environemnt variable.
    29  
    30  -   `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. 
    31  
    32  
    33  ### Optional
    34  
    35  -   `cores` (integer) - Amount of CPU cores to use for this build. Defaults to "4".
    36  
    37  -   `disk_size` (string) - Amount of disk space for this image in GB. Defaults to "50"
    38  
    39  -   `disk_type` (string) - Type of disk to use for this image. Defaults to "HDD".
    40  
    41  -   `location` (string) - Defaults to "us/las".
    42  
    43  -   `ram` (integer) - Amount of RAM to use for this image. Defalts to "2048".
    44  
    45  -   `snapshot_name` (string) - If snapshot name is not provided Packer will generate it
    46  
    47  -   `snapshot_password` (string) - Password for the snapshot.
    48  
    49  -   `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.
    50  
    51  -   `url` (string) - Endpoint for the ProfitBricks REST API. Default URL "https://api.profitbricks.com/rest/v2"
    52  
    53  
    54  ## Example
    55  
    56  Here is a basic example:
    57  
    58  ```json
    59  {
    60    "builders": [
    61      {
    62        "image": "Ubuntu-16.04",
    63        "type": "profitbricks",
    64        "disk_size": "5",
    65        "snapshot_name": "double",
    66        "ssh_key_path": "/path/to/private/key",
    67        "snapshot_password": "test1234",
    68        "timeout": 100
    69      }
    70    ]
    71  }
    72  ```