packer-cn/builder/azure/arm
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
..
TestVirtualMachineDeployment05.approved.txt
artifact.go Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
artifact_test.go Sharing info with post-processors via artifact (#8632) 2020-01-30 11:27:58 +01:00
azure_client.go replace the homegrown vault delete functions in azure with the sdk ones. 2020-03-18 13:48:54 -07:00
azure_error_response.go
azure_error_response_test.TestAzureErrorNestedShouldFormat.approved.txt
azure_error_response_test.TestAzureErrorSimpleShouldFormat.approved.txt
azure_error_response_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
builder.go [builder/azure-arm] Use VM/build location for image location (#9068) 2020-04-17 05:43:03 -04:00
builder_acc_test.go Fixed various typos 2019-07-25 06:49:51 +02:00
builder_test.go Merge remote-tracking branch 'origin/master' into sharing_info 2019-12-17 11:57:09 +01:00
capture_template.go
capture_template_test.go
config.go builder/azure-arm: Update runtime constants with a valid DataDiskName 2020-05-18 14:57:20 -04:00
config.hcl2spec.go HCL2: generate hcl tags with go-cty tags too (#9306) 2020-05-28 11:19:00 +02:00
config_test.go builder/azure-arm: Update runtime constants with a valid DataDiskName 2020-05-18 14:57:20 -04:00
inspector.go
openssh_key_pair.go also use config.SSHPrivateKey for azure-arm builds 2018-08-29 14:40:32 +02:00
openssh_key_pair_test.go
resource_resolver.go Updated go version and reformatted 2018-11-09 22:41:48 +00:00
resource_resolver_test.go build using HCL2 (#8423) 2019-12-17 11:25:56 +01:00
step.go
step_capture_image.go [builder/azure-arm] Use VM/build location for image location (#9068) 2020-04-17 05:43:03 -04:00
step_capture_image_test.go [builder/azure-arm] Use VM/build location for image location (#9068) 2020-04-17 05:43:03 -04:00
step_certificate_in_keyvault.go add tests 2020-02-06 16:41:28 -08:00
step_certificate_in_keyvault_test.go add tests 2020-02-06 16:41:28 -08:00
step_create_resource_group.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_create_resource_group_test.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_delete_additional_disks.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_delete_additional_disks_test.go
step_delete_os_disk.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_delete_os_disk_test.go
step_delete_resource_group.go replace the homegrown vault delete functions in azure with the sdk ones. 2020-03-18 13:48:54 -07:00
step_delete_resource_group_test.go
step_deploy_template.go replace the homegrown vault delete functions in azure with the sdk ones. 2020-03-18 13:48:54 -07:00
step_deploy_template_test.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_get_additional_disks.go
step_get_additional_disks_test.go
step_get_certificate.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_get_certificate_test.go
step_get_ip_address.go
step_get_ip_address_test.go
step_get_os_disk.go
step_get_os_disk_test.go
step_power_off_compute.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_power_off_compute_test.go
step_publish_to_shared_image_gallery.go [builder/azure-arm] Use VM/build location for image location (#9068) 2020-04-17 05:43:03 -04:00
step_publish_to_shared_image_gallery_test.go Set expiry for image versions in SIG 2020-01-06 22:58:26 -08:00
step_set_certificate.go rename interpolation context from ctx to ictx and contexts to ctx to avoid conflicts 2019-04-03 15:56:15 +02:00
step_set_certificate_test.go
step_snapshot_data_disks.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_snapshot_data_disks_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_snapshot_os_disk.go Update Azure SDK for Go to v30.0.0 2019-05-30 21:25:43 +00:00
step_snapshot_os_disk_test.go change Builder to be passed a context for cancellation 2019-04-03 15:55:55 +02:00
step_test.go
step_validate_template.go
step_validate_template_test.go
template_factory.go builder/azure: enable boot Diagnostics (#9053) 2020-04-20 07:29:13 -04:00
template_factory_test.TestKeyVaultDeployment03.approved.json Add KeyVault parameter and fix whitespace 2020-03-11 21:13:10 -04:00
template_factory_test.TestPlanInfo01.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestPlanInfo02.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment03.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment04.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment05.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment06.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment07.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment08.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment09.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment10.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment11.approved.json fix typo (add missing ')]' ) 2020-04-06 11:40:05 +05:30
template_factory_test.TestVirtualMachineDeployment12.approved.json fix typo (add missing ')]' ) 2020-04-06 11:40:05 +05:30
template_factory_test.TestVirtualMachineDeployment13.approved.json Update tests for datadisk name change 2020-04-05 01:16:24 +05:30
template_factory_test.TestVirtualMachineDeployment14.approved.json builder/azure: enable boot Diagnostics (#9053) 2020-04-20 07:29:13 -04:00
template_factory_test.go builder/azure: enable boot Diagnostics (#9053) 2020-04-20 07:29:13 -04:00
tempname.go builder/azure-arm: Update runtime constants with a valid DataDiskName 2020-05-18 14:57:20 -04:00
tempname_test.go Fix failing test & format code 2020-04-17 00:17:39 +05:30