Skip to content

Commit

Permalink
docs: fix links and options
Browse files Browse the repository at this point in the history
- Cleaned up Windows and Linux customization options on `vsphere-clone` documentation.
- Fixed broken links for Linux and Windows options.
- Added missing Windows options and examples.
  • Loading branch information
benjamin-lykins authored and tenthirtyam committed Apr 19, 2024
1 parent 310be57 commit 17595d4
Show file tree
Hide file tree
Showing 2 changed files with 120 additions and 11 deletions.
72 changes: 70 additions & 2 deletions .web-docs/components/builder/vsphere-clone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ For Windows guest operating systems, this is set for each network interface. Ref
<!-- End of code generated from the comments of the GlobalDnsSettings struct in builder/vsphere/clone/step_customize.go; -->


#### Linux Customization Settings
#### Linux Options

<!-- Code generated from the comments of the LinuxOptions struct in builder/vsphere/clone/step_customize.go; DO NOT EDIT MANUALLY -->

Expand All @@ -396,7 +396,7 @@ For Windows guest operating systems, this is set for each network interface. Ref
<!-- End of code generated from the comments of the LinuxOptions struct in builder/vsphere/clone/step_customize.go; -->


#### Customization Example
#### Linux Customization Example

**JSON**

Expand Down Expand Up @@ -434,6 +434,74 @@ For Windows guest operating systems, this is set for each network interface. Ref
}
```

#### Windows Options

<!-- Code generated from the comments of the WindowsOptions struct in builder/vsphere/clone/step_customize.go; DO NOT EDIT MANUALLY -->

- `run_once_command_list` (\*[]string) - Specifies a list of commands to run at first logon after the guest operating system is customized.

- `auto_logon` (\*bool) - Specifies whether the guest operating system automatically logs on as Administrator.

- `auto_logon_count` (\*int32) - 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`.

- `admin_password` (\*string) - Specifies the password for the guest operating system's Administrator account.

- `time_zone` (\*int32) - Specifies the time zone for the guest operating system. Default to `85` (Pacific Time).

- `workgroup` (string) - Specifies the workgroup for the guest operating system. Joining an Active Directory domain is not supported.

- `computer_name` (string) - Specifies the hostname for the guest operating system.

- `full_name` (string) - Specifies the full name for the guest operating system's Administrator account. Defaults to `Administrator`.

- `organization_name` (string) - Specifies the organization name for the guest operating system. Defaults to `Built by Packer`.

- `product_key` (string) - Specifies the product key for the guest operating system.

<!-- End of code generated from the comments of the WindowsOptions struct in builder/vsphere/clone/step_customize.go; -->


#### Windows Customization Example

**JSON**

```json
"customize": {
"windows_options": {
"host_name": "packer-test",
"workgroup": "packer",
"product_key": "WX4NM-KYWYW-QJJR4-XV3QB-6VM33",
"admin_password": "packer"
},
"network_interface": {
"ipv4_address": "10.0.0.10",
"ipv4_netmask": "24"
},
"ipv4_gateway": "10.0.0.1",
"dns_server_list": ["10.0.0.18"]
}
```

**HCL2**

```hcl
customize {
windows_options {
computer_name = "packer-test"
workgroup = "packer"
product_key = "WX4NM-KYWYW-QJJR4-XV3QB-6VM33"
admin_password = "packer"
}
network_interface {
ipv4_address = "10.0.0.10"
ipv4_netmask = "24"
}
ipv4_gateway = 10.0.0.1
dns_server_list = ["10.0.0.18"]
}
```

### Boot configuration

Expand Down
59 changes: 50 additions & 9 deletions docs/builders/vsphere-clone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -120,19 +120,17 @@ can be done via environment variable:

@include 'builder/vsphere/clone/GlobalDnsSettings-not-required.mdx'

#### Linux Customization Settings
#### Linux Options

@include 'builder/vsphere/clone/LinuxOptions-not-required.mdx'

#### Customization Example

**JSON**
**JSON Example**

```json
"customize": {
"linux_options": {
"host_name": "packer-test",
"domain": "test.internal"
"host_name": "foo",
"domain": "example.com"
},
"network_interface": {
"ipv4_address": "10.0.0.10",
Expand All @@ -143,13 +141,13 @@ can be done via environment variable:
}
```

**HCL2**
**HCL2 Example**

```hcl
customize {
linux_options {
host_name = "packer-test"
domain = "test.internal"
host_name = "foo"
domain = "example.com"
}
network_interface {
Expand All @@ -162,6 +160,49 @@ can be done via environment variable:
}
```

#### Windows Options

@include 'builder/vsphere/clone/WindowsOptions-not-required.mdx'

**JSON Example**

```json
"customize": {
"windows_options": {
"host_name": "foo",
"workgroup": "example",
"product_key": "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX",
"admin_password": "password"
},
"network_interface": {
"ipv4_address": "10.0.0.10",
"ipv4_netmask": "24"
},
"ipv4_gateway": "10.0.0.1",
"dns_server_list": ["10.0.0.18"]
}
```

**HCL2 Example**

```hcl
customize {
windows_options {
computer_name = "foo"
workgroup = "example"
product_key = "XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX"
admin_password = "packer"
}
network_interface {
ipv4_address = "10.0.0.10"
ipv4_netmask = "24"
}
ipv4_gateway = 10.0.0.1
dns_server_list = ["10.0.0.18"]
}
```

### Boot configuration

Expand Down

0 comments on commit 17595d4

Please sign in to comment.