Skip to content

Commit

Permalink
Merge pull request #3 from robertpeteuil/dev
Browse files Browse the repository at this point in the history
rename hcinstall
  • Loading branch information
robertpeteuil authored Oct 27, 2022
2 parents 99713eb + 4a04f9b commit 8d92cce
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

---

**hashi-install.sh** automates the process of downloading and installing HashiCorp products. It supports all binaries on releases.hashicorp.com; including terraform, packer, vault, consul, boundary, waypoint, etc..
**hcinstall.sh** automates the process of downloading and installing HashiCorp products. It supports all binaries on releases.hashicorp.com; including terraform, packer, vault, consul, boundary, waypoint, etc..

This script detects host architecture, searches for releases, downloads, verifies and installs binaries. Optional parameters allow finding latest patch releases, retrieving enterprise binaries, and functioning in special modes.

Expand All @@ -18,7 +18,7 @@ This is an upgrade and replacement for the earlier projects: [Terraform Installe
## Usage

```text
hashi-install.sh [-p PRODUCT] [-i VERSION] [-e] [-o] [-h] [-v] [-m] [-a] [-c] [-d]
hcinstall.sh [-p PRODUCT] [-i VERSION] [-e] [-o] [-h] [-v] [-m] [-a] [-c] [-d]
-p PRODUCT : product (default='terraform')
-i VERSION : version to install, supported formats '1.1.9' or '1.1' (default=latest)
Expand All @@ -42,20 +42,20 @@ hashi-install.sh [-p PRODUCT] [-i VERSION] [-e] [-o] [-h] [-v] [-m] [-a] [-c] [-
> specify product with `-p` flag
- defaults to Terraform if `-p` not specified
- `hashi-install.sh`
- `hcinstall.sh`
- install vault using product abbreviation
- `hashi-install.sh -p v`
- `hcinstall.sh -p v`
- install consul-template using name
- `hashi-install.sh -p consul-template`
- `hcinstall.sh -p consul-template`

> specify version with `-i` flag
- install latest - don't specify version
- `hashi-install.sh`
- `hcinstall.sh`
- install specific version - use MAJOR.MINOR.PATCH format
- `hashi-install.sh -i 1.1.5`
- `hcinstall.sh -i 1.1.5`
- determine & install latest patch release - use MAJOR.MINOR format
- `hashi-install.sh -i 1.1`
- `hcinstall.sh -i 1.1`

### Override CPU detection on Apple Silicon (arm64)

Expand All @@ -65,7 +65,7 @@ hashi-install.sh [-p PRODUCT] [-i VERSION] [-e] [-o] [-h] [-v] [-m] [-a] [-c] [-
- If `arm64` binaries aren't available for a given product + version, it reverts to `amd64` (Intel)
- To override detected CPU and force Intel binaries, use the `-m`
- ex: when using terraform with an older version of a provider that isn't available for arm64
- install the intel version of terraform with: `hashi-installer.sh -m`
- install the intel version of terraform with: `hcinstaller.sh -m`

## Migration from Previous Installers

Expand All @@ -82,8 +82,8 @@ hashi-install.sh [-p PRODUCT] [-i VERSION] [-e] [-o] [-h] [-v] [-m] [-a] [-c] [-
Download Installer

``` shell
curl -LO https://raw.github.com/robertpeteuil/hashicorp-installer/master/hashi-install.sh
chmod +x hashi-install.sh
curl -LO https://raw.github.com/robertpeteuil/hashicorp-installer/master/hcinstall.sh
chmod +x hcinstall.sh
```

## System Requirements
Expand Down
2 changes: 1 addition & 1 deletion hashi-install.sh → hcinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ set -e
defaultProduct="terraform"

scriptname=$(basename "$0")
scriptbuildnum="1.0.0-beta.1"
scriptbuildnum="1.0.0-beta.3"
scriptbuilddate="2022-10-26"

# CHECK DEPENDANCIES AND SET NET RETRIEVAL TOOL
Expand Down

0 comments on commit 8d92cce

Please sign in to comment.