From 8835d6069f534ffe9f0639b8b298d5e8caa86204 Mon Sep 17 00:00:00 2001 From: Dom Del Nano Date: Tue, 30 Mar 2021 22:46:14 -0700 Subject: [PATCH] Update docs on and remove it from the examples in favor of the default behavior --- docs/builders/xenserver-iso.html.markdown | 10 +++------- examples/centos8.json | 1 - examples/ubuntu-2004.json | 1 - 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/docs/builders/xenserver-iso.html.markdown b/docs/builders/xenserver-iso.html.markdown index 1f8c0b3..9c62c3f 100644 --- a/docs/builders/xenserver-iso.html.markdown +++ b/docs/builders/xenserver-iso.html.markdown @@ -150,13 +150,9 @@ each category, the available options are alphabetized and described. ``` * `shutdown_command` (string) - The command to use to gracefully shut down - the machine once all the provisioning is done. By default this is an empty - string, which tells Packer to just forcefully shut down the machine. - -* `shutdown_timeout` (string) - The amount of time to wait after executing - the `shutdown_command` for the virtual machine to actually shut down. - If it doesn't shut down in this time, it is an error. By default, the timeout - is "5m", or five minutes. + the machine once all the provisioning is done. If this is omitted, packer + will shut down the VM gracefully through the Xen api's vm shutdown command. Unless + you have special requirements this should typically be left to its default. * `ssh_host_port_min` and `ssh_host_port_max` (integer) - The minimum and maximum port to use for the SSH port on the host machine which is forwarded diff --git a/examples/centos8.json b/examples/centos8.json index ba3231e..ff8423b 100644 --- a/examples/centos8.json +++ b/examples/centos8.json @@ -30,7 +30,6 @@ "conversionvm":"true" }, "output_directory": "packer-centos-8.3-x86_64-xenserver", - "shutdown_command": "/sbin/shutdown", "ssh_username": "vagrant", "ssh_password": "vagrant", "ssh_wait_timeout": "10000s", diff --git a/examples/ubuntu-2004.json b/examples/ubuntu-2004.json index 0b0418a..0e45f27 100644 --- a/examples/ubuntu-2004.json +++ b/examples/ubuntu-2004.json @@ -30,7 +30,6 @@ "conversionvm":"true" }, "output_directory": "packer-ubuntu-2004-x86_64-xenserver", - "shutdown_command": "/sbin/shutdown", "ssh_username": "testuser", "ssh_password": "ubuntu", "ssh_wait_timeout": "60000s",