fixup! fixup! fixup! fixup! Add Exoscale Import post-processor

This commit is contained in:
Marc Falzon 2019-07-03 09:28:42 +02:00
parent 9ce5f5dcee
commit d82c4f0057
2 changed files with 11 additions and 10 deletions

View File

@ -80,6 +80,7 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
"image_bucket": &p.config.ImageBucket, "image_bucket": &p.config.ImageBucket,
"template_zone": &p.config.TemplateZone, "template_zone": &p.config.TemplateZone,
"template_name": &p.config.TemplateName, "template_name": &p.config.TemplateName,
"template_description": &p.config.TemplateDescription,
} }
errs := new(packer.MultiError) errs := new(packer.MultiError)

View File

@ -44,6 +44,8 @@ Required:
- `template_name` (string) - The name to be used for registering the template. - `template_name` (string) - The name to be used for registering the template.
- `template_description` (string) - The description for the registered template.
Optional: Optional:
- `api_endpoint` (string) - The API endpoint used to communicate with the - `api_endpoint` (string) - The API endpoint used to communicate with the
@ -55,9 +57,6 @@ Optional:
- `template_zone` (string) - The Exoscale [zone](https://www.exoscale.com/datacenters/) - `template_zone` (string) - The Exoscale [zone](https://www.exoscale.com/datacenters/)
in which to register the template. Defaults to `ch-gva-2`. in which to register the template. Defaults to `ch-gva-2`.
- `template_description` (string) - An optional text description for the
registered template.
- `template_username` (string) - An optional username to be used to log into - `template_username` (string) - An optional username to be used to log into
Compute instances using this template. Compute instances using this template.
@ -84,6 +83,7 @@ Here is a basic example:
"api_secret": "{{user `exoscale_api_secret`}}", "api_secret": "{{user `exoscale_api_secret`}}",
"image_bucket": "my-templates", "image_bucket": "my-templates",
"template_name": "myapp", "template_name": "myapp",
"template_description": "myapp v1.2.3",
"template_username": "admin" "template_username": "admin"
} }
``` ```