consul-installed

Example:

# Install default/latest version of Hashicorp Consul on Linux (amd64)
- consul-installed

Description

Installs the Hashicorp Consul binary for the architecture/platform of your choice.

By default, the binary will be installed into '/usr/local/bin'. If you specify a 'owner' and 'group' and they don't exist yet, they will be created.

Variables

Name Type Default Description

arch

string amd64

The architecture of the host system.

dest

string /usr/local/bin

The (absolute) path to the parent folder of the downloaded executable file.

group

string root

The group of the executable.

owner

string root

The owner of the executable.

platform

string linux

The platform of the host system.

version

string 1.5.2

The version of consul to install.

Examples

Example 1

Install default/latest version of Hashicorp Consul on Linux (amd64)

Code
- consul-installed

Example 2

Install Hashicorp Consul (version: 1.5.2) on Mac OS X

Code
- consul-installed:
    platform: darwin
    version: 1.5.2

Command-line

frecklecute consul-installed --help

Usage: frecklecute consul-installed [OPTIONS]

  Installs the Hashicorp [Consul](https://www.consul.io/) binary for the
  architecture/platform of your choice.

  By default, the binary will be installed into '/usr/local/bin'. If you
  specify a 'owner' and 'group' and they don't exist yet, they will be
  created.

Options:
  --arch ARCH          The architecture of the host system.
  --dest DEST          The (absolute) path to the parent folder of the
                       downloaded executable file.
  --group GROUP        The group of the executable.
  --owner USER         The owner of the executable.
  --platform PLATFORM  The platform of the host system.
  --version VERSION    The version of consul to install.
  --help               Show this message and exit.