From a11e65a1a7238da0fa35edba0aa28ae976e50e1c Mon Sep 17 00:00:00 2001 From: Martin Grogan Date: Mon, 27 Jan 2025 15:44:27 -0500 Subject: [PATCH] docs: regenerate docs --- .web-docs/components/builder/qemu/README.md | 3 +++ builder/qemu/config.hcl2spec.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.web-docs/components/builder/qemu/README.md b/.web-docs/components/builder/qemu/README.md index a46a319..9fd5c43 100644 --- a/.web-docs/components/builder/qemu/README.md +++ b/.web-docs/components/builder/qemu/README.md @@ -719,6 +719,9 @@ wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/foo/bar/preseed.cfg - `http_bind_address` (string) - This is the bind address for the HTTP server. Defaults to 0.0.0.0 so that it will work with any network interface. +- `http_network_protocol` (string) - Defines the HTTP Network protocol. Valid options are `tcp`, `tcp4`, `tcp6`, + `unix`, and `unixpacket`. This value defaults to `tcp`. + diff --git a/builder/qemu/config.hcl2spec.go b/builder/qemu/config.hcl2spec.go index a8592fe..ccd8f96 100644 --- a/builder/qemu/config.hcl2spec.go +++ b/builder/qemu/config.hcl2spec.go @@ -24,6 +24,7 @@ type FlatConfig struct { HTTPPortMax *int `mapstructure:"http_port_max" cty:"http_port_max" hcl:"http_port_max"` HTTPAddress *string `mapstructure:"http_bind_address" cty:"http_bind_address" hcl:"http_bind_address"` HTTPInterface *string `mapstructure:"http_interface" undocumented:"true" cty:"http_interface" hcl:"http_interface"` + HTTPNetworkProtocol *string `mapstructure:"http_network_protocol" cty:"http_network_protocol" hcl:"http_network_protocol"` ISOChecksum *string `mapstructure:"iso_checksum" required:"true" cty:"iso_checksum" hcl:"iso_checksum"` RawSingleISOUrl *string `mapstructure:"iso_url" required:"true" cty:"iso_url" hcl:"iso_url"` ISOUrls []string `mapstructure:"iso_urls" cty:"iso_urls" hcl:"iso_urls"` @@ -175,6 +176,7 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec { "http_port_max": &hcldec.AttrSpec{Name: "http_port_max", Type: cty.Number, Required: false}, "http_bind_address": &hcldec.AttrSpec{Name: "http_bind_address", Type: cty.String, Required: false}, "http_interface": &hcldec.AttrSpec{Name: "http_interface", Type: cty.String, Required: false}, + "http_network_protocol": &hcldec.AttrSpec{Name: "http_network_protocol", Type: cty.String, Required: false}, "iso_checksum": &hcldec.AttrSpec{Name: "iso_checksum", Type: cty.String, Required: false}, "iso_url": &hcldec.AttrSpec{Name: "iso_url", Type: cty.String, Required: false}, "iso_urls": &hcldec.AttrSpec{Name: "iso_urls", Type: cty.List(cty.String), Required: false},