-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[freebsd-*] Improve DRYness, correctness, & speed of FreeBSD templates.
The following improvements are made in this commit: * Ensure that all related provisioner shell scripts are written using more conservative bourne code idioms * Call all provisioner scripts with `sh -eux` which will (e) exit immediately if a command exits with a non-zero exit status, (u) treats unset variables as an error, and (x) outputs the command and its expanded arguments or associated word list * Use the `template` user variable to replace repetition of `"freebsd-*"` style strings throughout * Support a `HOME_DIR` environment variable for provisioner scripts to use * Remove now-unused user variable `arch` * Extract the `iso_checksum` and `iso_checksum_type` values into user variables and reference them in the templates * Construct the `iso_url` value from the `mirror`, `mirror_directory`, and `iso_name` user variables * Add an `install_path` user variable and use it throughout the templates * Add an `iso_name` user variable and use it throughout the templates * Use the `http_proxy`, `https_proxy`, and `no_proxy` environment variables if set on the workstation and make them available to the provisioner shell scripts to speed up package installations, etc. * Fix `shutdown_command` value to not output a file as a side effect
- Loading branch information
Showing
13 changed files
with
305 additions
and
256 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.