Skip to content

nomad/download-url

Internal param used by the tasks to define if Nomad was already found to be installed on the system.

By default the Nomad binary will be installed from Hashicorps repository. The installer script calculates the system Architecture and Operating System type (eg darwin, linux, windows), and coupled with the nomad/verison, downloads the correct binary.

To force the system to install from an alternate location, set this Param to define where to download the binary from.

The default download location is defined in the nomad-install Task as follows:

  • https://releases.hashicorp.com/nomad/\({NOMAD_VERSION}/\)

This expands to a value like:

  • https://releases.hashicorp.com/nomad/1.8.0/nomad_1.8.0_darwin_amd64.zip

This Param uses the golang template expansion capabilities which means other Params can be used. For example:

  • {{ .Param "nomad/version" }}

In addition, the script utilizes several shell variables that can be specified in this URL. For example:

  • arch: the platform architecture (amd64, arm64, etc)
  • osclass: the Operating System class (linux, darwin, windows, esxi)
  • shell var VERSION: the value of the Param nomad/version
  • shell var NOMAD_ZIP: the expanded variable of nomad_${VERSION}_${osclass}_${arch}.zip

Note that all of the standard shell variables set up in the Template setup.tmpl are available for use in this Param definitions.

There is no default configuration for this Param, which indicates the binary should be installed from the Hashicorp repository in the above reference.