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

     1  ---
     2  description: 'The 1&1 builder is able to create images for 1&1 cloud.'
     3  layout: docs
     4  page_title: '1&1 - Builders'
     5  sidebar_current: 'docs-builders-oneandone'
     6  ---
     7  
     8  # 1&1 Builder
     9  
    10  Type: `oneandone`
    11  
    12  The 1&1 Builder is able to create virtual machines for [1&1](https://www.1and1.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  -   `source_image_name` (string) - 1&1 Server Appliance name of type `IMAGE`.
    27  
    28  -   `token` (string) - 1&1 REST API Token. This can be specified via environment variable `ONEANDONE_TOKEN`
    29  
    30  ### Optional
    31  
    32  -   `data_center_name` - Name of virtual data center. Possible values "ES", "US", "GB", "DE". Default value "US"
    33  
    34  -   `disk_size` (string) - Amount of disk space for this image in GB. Defaults to "50"
    35  
    36  -   `image_name` (string) - Resulting image. If "image\_name" is not provided Packer will generate it
    37  
    38  -   `retries` (number) - Number of retries Packer will make status requests while waiting for the build to complete. Default value "600".
    39  
    40  -   `url` (string) - Endpoint for the 1&1 REST API. Default URL "<https://cloudpanel-api.1and1.com/v1>"
    41  
    42  ## Example
    43  
    44  Here is a basic example:
    45  
    46  ``` json
    47  {
    48    "builders":[
    49      {
    50        "type":"oneandone",
    51        "disk_size":"50",
    52        "image_name":"test5",
    53        "source_image_name":"ubuntu1604-64min",
    54        "ssh_username" :"root",
    55        "ssh_private_key_file" : "/path/to/private/ssh/key"
    56      }
    57    ]
    58  }
    59  ```