Megan Marsh
02d3fb37e3
fix return
2020-07-27 08:53:33 -07:00
Megan Marsh
69b0e66b5d
Update post-processor/vsphere/post-processor.go
...
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-27 08:52:29 -07:00
Adrien Delorme
c34e89aec7
getEncodedPassword: simplify encodedPassword return
2020-07-27 10:33:39 +02:00
Megan Marsh
395a0c472e
improve postprocessor stdout
2020-07-25 08:24:21 -07:00
Megan Marsh
6383e6cbbf
fix vsphere postprocessor password log filtering, write tests
2020-07-25 08:24:21 -07:00
Megan Marsh
1b6b44589d
Change to use query syntax instead of manually throwing queries in.
...
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-07-23 14:36:41 -07:00
Megan Marsh
393b2d16c4
switch to using net/url.URL struct for encoding rather than the incorrect QueryEscape for the whole URL.
2020-07-23 14:33:09 -07:00
Megan Marsh
2e4d0c888a
pull ovftool uri generation into separate function, test function
2020-07-23 14:33:09 -07:00
Megan Marsh
a687d6fe12
ci/tech-debt: Fix vmware acceptance tests ( #9636 )
...
* add kex algorithm option to ssh config
* regenerate code
* This commit fixes old vmware acceptance tests that have not been run in some time. It does this in two parts:
1) It modifies the minimal vmware build configuration to use a custom kex algorithm, which enables the ssh connection to succeed.
2) It modifies logic in reading and defaulting hardware config values, which was crashing.
3) It adds a new acceptance test with a preseed file to test loading from an http directory.
2020-07-23 09:40:57 +02:00
Gennady Lipenkov
46a5561340
go import file
2020-07-22 11:39:28 +03:00
Gennady Lipenkov
53e7f4e71a
extend artifact, code refactoring
2020-07-22 01:01:30 +03:00
Gennady Lipenkov
e0cc7b9d8c
yandex-import: allow create image based on another one
...
Allow as source for a new Compute Image not only URL to Storage Object but also a another one Compute Image
Details at official doc about ImageCreateRequest https://cloud.yandex.com/docs/compute/grpc/image_service#CreateImageRequest
2020-07-20 20:26:22 +03:00
Megan Marsh
ea4aa67f78
make friendly error message ( #9605 )
2020-07-20 16:58:38 +02:00
Gennady Lipenkov
b16cccde3d
Support piping of yandex-import post-processors
2020-07-17 18:36:48 +03:00
Gennady Lipenkov
b28be46dc1
Add package alias (fix lint)
2020-07-17 01:22:28 +03:00
Gennady Lipenkov
29a6687475
Separate workflow for file on disk and prepared URL
2020-07-17 01:09:49 +03:00
Gennady Lipenkov
59aaaf7a91
Support provision of token, SA key file and folder ID from OS env vars
...
As in yandex-export PP and yandex builder.
2020-07-17 01:04:00 +03:00
Gennady Lipenkov
7f9ba42ee2
Add storage util funcs with test
2020-07-17 00:59:39 +03:00
Gennady Lipenkov
bd1e4f9d7d
yandex-export post-processor artifact id is url.
...
First storage path used.
2020-07-17 00:45:19 +03:00
Gennady Lipenkov
0092007311
Forms urls and support get url for yandex-export artifact
2020-07-16 18:01:18 +03:00
Gennady Lipenkov
fab42a061e
Update doc and example.
2020-07-16 18:01:15 +03:00
Gennady Lipenkov
f0e1b719d8
Forms urls and support get url for yandex-export artifact
2020-07-16 17:59:21 +03:00
Gennady Lipenkov
8442d570e5
Allow work with yandex-export artifact
2020-07-16 17:57:53 +03:00
zhsj
e2cbe0de48
post-processor/vagrant-cloud: missing vagrant_cloud_url in test ( #9572 )
2020-07-14 10:29:28 +02:00
Lars Lehtonen
1400662db7
post-processor/digitalocean-import: replace deprecated oauth2.NoContext ( #9566 )
2020-07-13 17:13:35 +02:00
Roger Hu
28f8241a05
update generated files
2020-07-10 16:58:06 -07:00
Gennady Lipenkov
d83d2b0273
Update documentation
2020-07-09 17:43:11 +03:00
GennadySpb
446d259459
Update post-processor/yandex-export/post-processor.go
...
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
2020-07-09 16:21:21 +03:00
Gennady Lipenkov
b02401c41b
Update doc and example.
2020-07-09 16:21:21 +03:00
Gennady Lipenkov
5762367de1
Provide 'GeneratedData' value for step 'StepCreateInstance'
2020-07-09 16:21:21 +03:00
Gennady Lipenkov
099dd3e7b3
Validate and render 'paths' config value
2020-07-09 16:21:21 +03:00
GennadySpb
919b54f4f4
yandex-export: tiny improvements ( #9554 )
2020-07-09 10:46:51 +02:00
Gennady Lipenkov
e5a4155378
Update doc
2020-07-09 00:24:53 +03:00
Gennady Lipenkov
64cda51bff
Image name not required attr
2020-07-08 23:01:25 +03:00
Gennady Lipenkov
32b77f3b80
Update doc pages
2020-07-08 22:54:20 +03:00
Gennady Lipenkov
409534738a
Add error check
2020-07-08 22:22:55 +03:00
Gennady Lipenkov
553d203e68
Add yandex-import post-processor
2020-07-08 22:01:52 +03:00
Megan Marsh
673858a63c
Merge pull request #9513 from hashicorp/undocument_ssh_temp_key
...
Undocument ssh options not used by all builders
2020-07-07 14:26:21 -07:00
Geoff Schultz
8010a23b34
Adding retry for ImportImage call in amazon-import post-processor.
2020-07-06 09:41:13 -05:00
Moss
8ea64c5b35
undocument ssh_keypair_name and ssh_agent_auth
2020-07-02 14:55:58 +02:00
Moss
41edd09d3c
undocument temporary_key_pair_name and ssh_private_key_file
2020-07-01 16:33:18 +02:00
Sylvia Moss
99046c9178
Share build info with Provisioner and Post-Processor via HCL2 variables ( #9444 )
2020-06-29 13:44:57 +02:00
mingsheng.su
8a8abdf615
update ucloud-uhost builder ( #9466 )
...
* update ucloud-uhost builder, docs and deps
Co-authored-by: Wilken Rivera <dev@wilkenrivera.com>
Co-authored-by: Adrien Delorme <azr@users.noreply.github.com>
2020-06-24 14:31:05 +02:00
Megan Marsh
4f77bb0c4a
add new ssh_ciphers option
2020-06-17 16:48:23 -07:00
Gennady Lipenkov
56224ae08d
Instance SA auth for yandex-export post-processor
2020-06-17 18:15:53 +03:00
Megan Marsh
4178625afb
re-add winrm_no_proxy option. Winrm code needs to be modified in order to read no_proxy env var when client is created rather than when net/http library is instantiated.
2020-06-16 10:27:30 -07:00
Megan Marsh
a0a3ddbadb
Merge pull request #9379 from GennadySpb/sa-auth-in-yandex-export
...
Support Authentication by Service Account Key file in Yandex Export post-processor
2020-06-10 09:40:02 -07:00
GennadySpb
79770f919a
Fix error message ( #9373 )
2020-06-10 13:29:20 +02:00
Gennady Lipenkov
85da85271f
Support SA Key authentication in Yandex Export post-processor
2020-06-09 11:06:12 +03:00
Adrien Delorme
40947c2bf6
HCL2: generate hcl tags with go-cty tags too ( #9306 )
...
This will allow to generate the config files:
```go
package main
import (
"fmt"
"github.com/hashicorp/hcl/v2/gohcl"
"github.com/hashicorp/hcl/v2/hclwrite"
"github.com/hashicorp/packer/builder/alicloud/ecs"
)
func main() {
name := "name"
app := ecs.FlatConfig{
AlicloudImageName: &name,
ECSSystemDiskMapping: &ecs.FlatAlicloudDiskDevice{
DiskName: &name,
},
}
f := hclwrite.NewEmptyFile()
block := gohcl.EncodeAsBlock(&app, `source "something" "something"`)
f.Body().AppendBlock(block)
fmt.Printf("%s", f.Bytes())
}
```
Will output:
```
source "something" "something" {
packer_user_variables = null
packer_sensitive_variables = null
image_name = "name"
image_share_account = null
image_unshare_account = null
image_copy_regions = null
image_copy_names = null
tags = null
tag = null
system_disk_mapping = { disk_category = null, disk_delete_with_instance = null, disk_descri
ption = null, disk_device = null, disk_encrypted = null, disk_name = "name", disk_size = null, disk_
snapshot_id = null }
image_disk_mappings = null
ssh_remote_tunnels = null
ssh_local_tunnels = null
ssh_public_key = null
ssh_private_key = null
}
```
This is a good first step for #9015 and #9282
fix #9304
2020-05-28 11:19:00 +02:00