github.com/ratanraj/packer@v1.3.2/website/source/docs/builders/profitbricks.html.md (about)

     1  ---
     2  description: 'The ProfitBricks builder is able to create images for ProfitBricks cloud.'
     3  layout: docs
     4  page_title: 'ProfitBricks - Builders'
     5  sidebar_current: 'docs-builders-profitbricks'
     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. 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 defined 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 defined in the config has precedence over environemnt variable.
    31  
    32  ### Optional
    33  
    34  -   `cores` (number) - Amount of CPU cores to use for this build. Defaults to "4".
    35  
    36  -   `disk_size` (string) - Amount of disk space for this image in GB. Defaults to "50"
    37  
    38  -   `disk_type` (string) - Type of disk to use for this image. Defaults to "HDD".
    39  
    40  -   `location` (string) - Defaults to "us/las".
    41  
    42  -   `ram` (number) - Amount of RAM to use for this image. Defaults to "2048".
    43  
    44  -   `retries` (string) - Number of retries Packer will make status requests while waiting for the build to complete. Default value 120 seconds.
    45  
    46  -   `snapshot_name` (string) - If snapshot name is not provided Packer will generate it
    47  
    48  -   `snapshot_password` (string) - Password for the snapshot.
    49  
    50  -   `url` (string) - Endpoint for the ProfitBricks REST API. Default URL "<https://api.profitbricks.com/rest/v2>"
    51  
    52  ## Example
    53  
    54  Here is a basic example:
    55  
    56  ``` json
    57  {
    58    "builders": [
    59      {
    60        "image": "Ubuntu-16.04",
    61        "type": "profitbricks",
    62        "disk_size": "5",
    63        "snapshot_name": "double",
    64        "snapshot_password": "test1234",
    65        "ssh_username" :"root",
    66        "timeout": 100
    67      }
    68    ]
    69  }
    70  ```