fixup! fixup! fixup! fixup! Add Exoscale Import post-processor
This commit is contained in:
parent
9ce5f5dcee
commit
d82c4f0057
|
@ -73,13 +73,14 @@ func (p *PostProcessor) Configure(raws ...interface{}) error {
|
||||||
}
|
}
|
||||||
|
|
||||||
requiredArgs := map[string]*string{
|
requiredArgs := map[string]*string{
|
||||||
"api_key": &p.config.APIKey,
|
"api_key": &p.config.APIKey,
|
||||||
"api_secret": &p.config.APISecret,
|
"api_secret": &p.config.APISecret,
|
||||||
"api_endpoint": &p.config.APIEndpoint,
|
"api_endpoint": &p.config.APIEndpoint,
|
||||||
"sos_endpoint": &p.config.SOSEndpoint,
|
"sos_endpoint": &p.config.SOSEndpoint,
|
||||||
"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)
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue