Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: use example.com #372

Merged
merged 1 commit into from
Mar 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .web-docs/components/builder/vsphere-clone/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1400,14 +1400,14 @@ Only use the `host` option. Optionally specify a `resource_pool`:
**JSON**

```json
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",
"resource_pool": "pool1",
```

**HCL2**

```hcl
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
resource_pool = "pool1"
```

Expand All @@ -1420,14 +1420,14 @@ Use the `cluster` and `host`parameters:

```json
"cluster": "cluster1",
"host": "esxi-2.vsphere65.test",
"host": "esxi-02.example.com",
```

**HCL2**

```hcl
cluster = "cluster1"
host = "esxi-2.vsphere65.test"
host = "esxi-02.example.com"
```


Expand Down
10 changes: 5 additions & 5 deletions .web-docs/components/builder/vsphere-iso/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1415,14 +1415,14 @@ Only use the `host` option. Optionally specify a `resource_pool`:
**JSON**

```json
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",
"resource_pool": "pool1",
```

**HCL2**

```hcl
host = ""esxi-1.vsphere65.test""
host = ""esxi-01.example.com""
resource_pool = "pool1"
```

Expand All @@ -1435,14 +1435,14 @@ Use the `cluster` and `host`parameters:

```json
"cluster": "cluster1",
"host": "esxi-2.vsphere65.test",
"host": "esxi-02.example.com",
```

**HCL2**

```hcl
cluster = "cluster1"
host = "esxi-2.vsphere65.test"
host = "esxi-02.example.com"
```


Expand All @@ -1467,7 +1467,7 @@ resource_pool = "pool1"

## Required vSphere Privileges

It is recommended to create a custom vSphere role with the required privileges to integrate Packer with vSphere. Accounts or groups can be added to the role to ensure that Packer has **_the least privileged_** access to the infrastructure. For example, a named service account (_e.g._ [email protected]).
It is recommended to create a custom vSphere role with the required privileges to integrate Packer with vSphere. Accounts or groups can be added to the role to ensure that Packer has **_the least privileged_** access to the infrastructure. For example, a named service account (_e.g._ [email protected]).

Clone the default **Read-Only** vSphere role and add the following privileges, which are based on the capabilities of the `vsphere-iso` plugin:

Expand Down
2 changes: 1 addition & 1 deletion builder/vsphere/common/testing/utility.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestConn() (driver.Driver, error) {
}

d, err := driver.NewDriver(&driver.ConnectConfig{
VCenterServer: "vcenter.vsphere65.test",
VCenterServer: "vcenter.example.com",
Username: username,
Password: password,
InsecureConnection: true,
Expand Down
2 changes: 1 addition & 1 deletion builder/vsphere/driver/datastore_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func TestDatastoreAcc(t *testing.T) {
func TestFileUpload(t *testing.T) {
t.Skip("Acceptance tests not configured yet.")
dsName := "datastore1"
hostName := "esxi-1.vsphere65.test"
hostName := "esxi-01.example.com"

fileName := fmt.Sprintf("test-%v", time.Now().Unix())
tmpFile, err := os.CreateTemp("", fileName)
Expand Down
4 changes: 2 additions & 2 deletions builder/vsphere/driver/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
)

// Defines whether acceptance tests should be run
const TestHostName = "esxi-1.vsphere65.test"
const TestHostName = "esxi-01.example.com"

func newTestDriver(t *testing.T) Driver {
username := os.Getenv("VSPHERE_USERNAME")
Expand All @@ -37,7 +37,7 @@ func newTestDriver(t *testing.T) Driver {
}

d, err := NewDriver(&ConnectConfig{
VCenterServer: "vcenter.vsphere65.test",
VCenterServer: "vcenter.example.com",
Username: username,
Password: password,
InsecureConnection: true,
Expand Down
2 changes: 1 addition & 1 deletion builder/vsphere/driver/resource_pool_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "testing"
func TestResourcePoolAcc(t *testing.T) {
t.Skip("Acceptance tests not configured yet.")
d := newTestDriver(t)
p, err := d.FindResourcePool("", "esxi-1.vsphere65.test", "pool1/pool2")
p, err := d.FindResourcePool("", "esxi-01.example.com", "pool1/pool2")
if err != nil {
t.Fatalf("Cannot find the default resource pool '%v': %v", "pool1/pool2", err)
}
Expand Down
6 changes: 3 additions & 3 deletions builder/vsphere/examples/alpine/alpine-3.8.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"{{template_dir}}/setup.sh"
],
"guest_os_type": "other3xLinux64Guest",
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",
"insecure_connection": true,
"iso_paths": [
"[datastore1] ISO/alpine-standard-3.8.2-x86_64.iso"
Expand All @@ -49,7 +49,7 @@
}
],
"username": "root",
"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"vm_name": "alpine-{{timestamp}}"
}
],
Expand All @@ -61,4 +61,4 @@
"type": "shell"
}
]
}
}
4 changes: 2 additions & 2 deletions builder/vsphere/examples/alpine/alpine-3.8.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source "vsphere-iso" "autogenerated_1" {
disk_controller_type = ["pvscsi"]
floppy_files = ["${path.root}/answerfile", "${path.root}/setup.sh"]
guest_os_type = "other3xLinux64Guest"
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
insecure_connection = true
iso_paths = ["[datastore1] ISO/alpine-standard-3.8.2-x86_64.iso"]
network_adapters {
Expand All @@ -31,7 +31,7 @@ source "vsphere-iso" "autogenerated_1" {
disk_thin_provisioned = true
}
username = "root"
vcenter_server = "vcenter.vsphere65.test"
vcenter_server = "vcenter.example.com"
vm_name = "alpine-${local.timestamp}"
}

Expand Down
4 changes: 2 additions & 2 deletions builder/vsphere/examples/clone/alpine.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
{
"type": "vsphere-clone",

"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"username": "root",
"password": "jetbrains",
"insecure_connection": "true",

"template": "alpine",
"vm_name": "alpine-clone-{{timestamp}}",
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",

"communicator": "none"
}
Expand Down
4 changes: 2 additions & 2 deletions builder/vsphere/examples/clone/alpine.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ locals { timestamp = regex_replace(timestamp(), "[- TZ:]", "") }
# https://www.packer.io/docs/templates/hcl_templates/blocks/source
source "vsphere-clone" "example_clone" {
communicator = "none"
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
insecure_connection = "true"
password = "jetbrains"
template = "alpine"
username = "root"
vcenter_server = "vcenter.vsphere65.test"
vcenter_server = "vcenter.example.com"
vm_name = "alpine-clone-${local.timestamp}"
}

Expand Down
4 changes: 2 additions & 2 deletions builder/vsphere/examples/driver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func main() {
d, err := driver.NewDriver(&driver.ConnectConfig{
VCenterServer: "vcenter.vsphere65.test",
VCenterServer: "vcenter.example.com",
Username: "root",
Password: "jetbrains",
InsecureConnection: true,
Expand All @@ -20,7 +20,7 @@ func main() {
panic(err)
}

ds, err := d.FindDatastore("", "esxi-1.vsphere65.test")
ds, err := d.FindDatastore("", "esxi-01.example.com")
if err != nil {
panic(err)
}
Expand Down
6 changes: 3 additions & 3 deletions builder/vsphere/examples/macos/macos-10.13.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"smc.present": "TRUE"
},
"guest_os_type": "darwin16_64Guest",
"host": "esxi-mac.vsphere65.test",
"host": "esxi-mac.vsphere65esxi-02.example.com",
"insecure_connection": "true",
"iso_checksum": "file:///{{template_dir}}/setup/out/sha256sums",
"iso_paths": [
Expand All @@ -42,8 +42,8 @@
],
"usb_controller": true,
"username": "root",
"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"vm_name": "macos-packer"
}
]
}
}
2 changes: 1 addition & 1 deletion builder/vsphere/examples/macos/macos-10.13.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ source "vsphere-iso" "example_osx" {
}
usb_controller = ["usb"]
username = "root"
vcenter_server = "vcenter.vsphere65.test"
vcenter_server = "vcenter.example.com"
vm_name = "macos-packer"
}

Expand Down
6 changes: 3 additions & 3 deletions builder/vsphere/examples/ubuntu/ubuntu-16.04.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"{{template_dir}}/preseed.cfg"
],
"guest_os_type": "ubuntu64Guest",
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",
"insecure_connection": true,
"iso_paths": [
"[datastore1] ISO/ubuntu-16.04.3-server-amd64.iso"
Expand All @@ -48,7 +48,7 @@
}
],
"username": "root",
"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"vm_name": "example-ubuntu"
}
],
Expand All @@ -60,4 +60,4 @@
"type": "shell"
}
]
}
}
4 changes: 2 additions & 2 deletions builder/vsphere/examples/ubuntu/ubuntu-16.04.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source "vsphere-iso" "example" {
disk_controller_type = ["pvscsi"]
floppy_files = ["${path.root}/preseed.cfg"]
guest_os_type = "ubuntu64Guest"
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
insecure_connection = true
iso_paths = ["[datastore1] ISO/ubuntu-16.04.3-server-amd64.iso"]
network_adapters {
Expand All @@ -39,7 +39,7 @@ source "vsphere-iso" "example" {
disk_thin_provisioned = true
}
username = "root"
vcenter_server = "vcenter.vsphere65.test"
vcenter_server = "vcenter.example.com"
vm_name = "example-ubuntu"
}

Expand Down
6 changes: 3 additions & 3 deletions builder/vsphere/examples/windows/windows-10.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
],
"floppy_img_path": "[datastore1] ISO/VMware Tools/10.2.0/pvscsi-Windows8.flp",
"guest_os_type": "windows9_64Guest",
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",
"insecure_connection": "true",
"iso_paths": [
"[datastore1] ISO/en_windows_10_multi-edition_vl_version_1709_updated_dec_2017_x64_dvd_100406172.iso",
Expand All @@ -31,7 +31,7 @@
}
],
"username": "root",
"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"vm_name": "example-windows",
"winrm_password": "jetbrains",
"winrm_username": "jetbrains"
Expand All @@ -45,4 +45,4 @@
"type": "windows-shell"
}
]
}
}
4 changes: 2 additions & 2 deletions builder/vsphere/examples/windows/windows-10.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source "vsphere-iso" "example_windows" {
floppy_files = ["${path.root}/setup/"]
floppy_img_path = "[datastore1] ISO/VMware Tools/10.2.0/pvscsi-Windows8.flp"
guest_os_type = "windows9_64Guest"
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
insecure_connection = "true"
iso_paths = ["[datastore1] ISO/en_windows_10_multi-edition_vl_version_1709_updated_dec_2017_x64_dvd_100406172.iso", "[datastore1] ISO/VMware Tools/10.2.0/windows.iso"]
network_adapters {
Expand All @@ -26,7 +26,7 @@ source "vsphere-iso" "example_windows" {
disk_thin_provisioned = true
}
username = "root"
vcenter_server = "vcenter.vsphere65.test"
vcenter_server = "vcenter.example.com"
vm_name = "example-windows"
winrm_password = "jetbrains"
winrm_username = "jetbrains"
Expand Down
10 changes: 5 additions & 5 deletions builder/vsphere/iso/builder_acc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ func defaultConfig() map[string]interface{} {

vcenter := os.Getenv("VSPHERE_VCENTER_SERVER")
if vcenter == "" {
vcenter = "vcenter.vsphere65.test"
vcenter = "vcenter.example.com"
}

host := os.Getenv("VSPHERE_HOST")
if host == "" {
host = "esxi-1.vsphere65.test"
host = "esxi-01.example.com"
}

config := map[string]interface{}{
Expand Down Expand Up @@ -554,13 +554,13 @@ func fullConfig() map[string]interface{} {
}

config := map[string]interface{}{
"vcenter_server": "vcenter.vsphere65.test",
"vcenter_server": "vcenter.example.com",
"username": username,
"password": password,
"insecure_connection": true,

"vm_name": commonT.NewVMName(),
"host": "esxi-1.vsphere65.test",
"host": "esxi-01.example.com",

"RAM": 512,
"disk_controller_type": []string{
Expand Down Expand Up @@ -695,7 +695,7 @@ func checkBootOrder(name string) error {
func TestISOBuilderAcc_cluster(t *testing.T) {
config := defaultConfig()
config["cluster"] = "cluster1"
config["host"] = "esxi-2.vsphere65.test"
config["host"] = "esxi-02.example.com"
testCase := &acctest.PluginTestCase{
Name: "vsphere-iso_bootOrder_test",
Template: commonT.RenderConfig("vsphere-iso", config),
Expand Down
Loading
Loading