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

@ -73,13 +73,14 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
}
requiredArgs := map[string]*string{
"api_key": &p.config.APIKey,
"api_secret": &p.config.APISecret,
"api_endpoint": &p.config.APIEndpoint,
"sos_endpoint": &p.config.SOSEndpoint,
"image_bucket": &p.config.ImageBucket,
"template_zone": &p.config.TemplateZone,
"template_name": &p.config.TemplateName,
"api_key": &p.config.APIKey,
"api_secret": &p.config.APISecret,
"api_endpoint": &p.config.APIEndpoint,
"sos_endpoint": &p.config.SOSEndpoint,
"image_bucket": &p.config.ImageBucket,
"template_zone": &p.config.TemplateZone,
"template_name": &p.config.TemplateName,
"template_description": &p.config.TemplateDescription,
}
errs := new(packer.MultiError)

View File

@ -44,6 +44,8 @@ Required:
- `template_name` (string) - The name to be used for registering the template.
- `template_description` (string) - The description for the registered template.
Optional:
- `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/)
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
Compute instances using this template.
@ -84,6 +83,7 @@ Here is a basic example:
"api_secret": "{{user `exoscale_api_secret`}}",
"image_bucket": "my-templates",
"template_name": "myapp",
"template_description": "myapp v1.2.3",
"template_username": "admin"
}
```