You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update the docs for the `step_clone` and `step_customize` to be a little less jarring and comment formatting.
Signed-off-by: Ryan Johnson <ryan.johnson@broadcom.com>
Copy file name to clipboardExpand all lines: builder/vsphere/clone/step_customize.go
+75-40Lines changed: 75 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -26,21 +26,30 @@ var (
26
26
// A cloned virtual machine can be [customized](https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-58E346FF-83AE-42B8-BE58-253641D257BC.html)
27
27
// to configure host, network, or licensing settings.
28
28
//
29
-
// To perform virtual machine customization as a part of the clone process, specify the customize block with the
30
-
// respective customization options. Windows guests are customized using Sysprep, which will result in the machine SID being reset.
31
-
// Before using customization, check that your source virtual machine meets the
// To perform virtual machine customization as a part of the clone process,
30
+
// specify the customize block with the respective customization options.
31
+
// Windows guests are customized using Sysprep, which will result in the machine
32
+
// SID being reset. Before using customization, check that your source virtual
33
+
// machine meets the [requirements](https://docs.vmware.com/en/VMware-vSphere/8.0/vsphere-vm-administration/GUID-E63B6FAA-8D35-428D-B40C-744769845906.html)
33
34
// for guest OS customization on vSphere. Refer to the [customization example](#customization-example) for a usage synopsis.
34
35
//
35
36
// The settings for guest customization include:
36
37
typeCustomizeConfigstruct {
37
-
// Settings for the guest customization of Linux operating systems. Refer to the [Linux options](#linux-options) section for additional details.
38
+
// Settings for the guest customization of Linux operating systems.
39
+
// Refer to the [Linux options](#linux-options) section for additional
// Provide a `sysprep.xml` file to allow control of the customization process independent of vSphere. This option is deprecated, please use `windows_sysprep_text`.
46
+
// Provide a `sysprep.xml` file to allow control of the customization
47
+
// process independent of vSphere. This option is deprecated, please use
// Provide the text for the `sysprep.xml` content to allow control of the customization process independent of vSphere. This option is intended to be used with HCL templates.
50
+
// Provide the text for the `sysprep.xml` content to allow control of the
51
+
// customization process independent of vSphere. This option is intended to
52
+
// be used with HCL templates.
44
53
//
45
54
// Example usage:
46
55
//
@@ -61,81 +70,107 @@ type CustomizeConfig struct {
// Specifies whether the guest operating system automatically logs on as Administrator.
102
+
// Aautomatically log on the Administrator account after the guest operating
103
+
// system is customized.
87
104
AutoLogon*bool`mapstructure:"auto_logon"`
88
-
// Specifies how many times the guest operating system should auto-logon the Administrator account when `auto_logon` is set to `true`. Default:s to `1`.
105
+
// The number of times the guest operating system should auto-logon the
106
+
// Administrator account when `auto_logon` is set to `true`.
// Specifies the DNS search domain for a specific network interface on a Windows guest operating system.
111
-
// Ignored on Linux. Refer to the [global DNS settings](#global-dns-settings) section for additional details.
135
+
// The DNS search domain for a specific network interface on a Windows guest
136
+
// operating system. Ignored on Linux. Refer to the
137
+
// [global DNS settings](#global-dns-settings) section for additional
138
+
// details.
112
139
DnsDomainstring`mapstructure:"dns_domain"`
113
-
// Specifies the IPv4 address assigned to the network adapter. If left blank or not included, DHCP is used.
140
+
// The IPv4 address assigned to the network adapter. If left blank or not
141
+
// included, DHCP is used.
114
142
Ipv4Addressstring`mapstructure:"ipv4_address"`
115
-
// Specifies the IPv4 subnet mask, in bits, for the network adapter. For example, `24` for a `/24` subnet.
143
+
// The IPv4 subnet mask, in bits, for the network adapter. For example, `24`
144
+
// for a `/24` subnet.
116
145
Ipv4NetMaskint`mapstructure:"ipv4_netmask"`
117
-
// Specifies the IPv6 address assigned to the network adapter. If left blank or not included, auto-configuration is used.
146
+
// The IPv6 address assigned to the network adapter. If left blank or not
147
+
// included, auto-configuration is used.
118
148
Ipv6Addressstring`mapstructure:"ipv6_address"`
119
-
// Specifies the IPv6 subnet mask, in bits, for the network adapter. For example, `64` for a `/64` subnet.
149
+
// The IPv6 subnet mask, in bits, for the network adapter. For example, `64`
150
+
// for a `/64` subnet.
120
151
Ipv6NetMaskint`mapstructure:"ipv6_netmask"`
121
152
}
122
153
123
154
typeNetworkInterfaces []NetworkInterface
124
155
125
-
// The settings must match the IP address and subnet mask of at least one `network_interface` for the customization.
156
+
// The settings must match the IP address and subnet mask of at least one
157
+
// `network_interface` for the customization.
126
158
typeGlobalRoutingSettingsstruct {
127
-
// Specifies the IPv4 default gateway when using `network_interface` customization.
159
+
// The IPv4 default gateway when using `network_interface` customization.
128
160
Ipv4Gatewaystring`mapstructure:"ipv4_gateway"`
129
-
// Specifies the IPv6 default gateway when using `network_interface` customization.
161
+
// The IPv6 default gateway when using `network_interface` customization.
130
162
Ipv6Gatewaystring`mapstructure:"ipv6_gateway"`
131
163
}
132
164
133
-
// The following settings configure DNS globally for Linux guest operating systems.
134
-
// For Windows guest operating systems, this is set for each network interface. Refer to the [network interface](#network_interface) section for additional details.
165
+
// The following settings configure DNS globally for Linux guest operating
166
+
// systems. For Windows guest operating systems, this is set for each network
167
+
// interface. Refer to the [network interface](#network_interface) section for
168
+
// additional details.
135
169
typeGlobalDnsSettingsstruct {
136
-
// Specifies a list of DNS servers to configure on the guest operating system.
170
+
// A list of DNS servers to configure on the guest operating system.
0 commit comments