terraform-installer

Installer for HashiCorp Terraform - Automatic Download, Extract and Install of Latest or Specific Version

APACHE-2.0 License

Stars
74
Committers
4

Bot releases are visible (Hide)

terraform-installer - 1.5.4 Latest Release

Published by robertpeteuil over 4 years ago

Add CPU Architecture check for aarch64 (on Linux)

  • use regular arm binary as Terraform currently does not have a separate binary for arm64
terraform-installer - 1.5.3

Published by robertpeteuil over 4 years ago

Adjust movement of binary from download folder to destination

terraform-installer - 1.5.2

Published by robertpeteuil almost 5 years ago

Add arm processor detection

terraform-installer - 1.5.1

Published by robertpeteuil about 6 years ago

Adjust latest_version algorithm to exclude alpha releases

terraform-installer - 1.5.0

Published by robertpeteuil about 6 years ago

fix latest version checking

  • latest version fixes
    • no longer includes beta and rc versions
    • no longer requires sort --versions-sort argument in jq-based algorithm [issue #4]
  • gather latest version only when necessary and after help [issue #4]
  • added set -e error trap [issue #4]
terraform-installer - 1.4.0

Published by robertpeteuil about 6 years ago

Add checksum validation of downloaded file before installation

terraform-installer - 1.3.3

Published by robertpeteuil about 6 years ago

Correct fallback value for cpu architecture detection.

terraform-installer - 1.3.2

Published by robertpeteuil about 6 years ago

Adjust for use in CI/DevOps pipelines

terraform-installer - 1.3.1

Published by robertpeteuil about 6 years ago

Added -c option to leave binary in current directory (for CI/DevOps use)

terraform-installer - 1.3.0

Published by robertpeteuil over 6 years ago

Compatibility Release - works with either curl or wget and uses jq if installed

  • checks for either curl or wget and uses whichever is present
    • defaults to curl if both installed
  • if jq is installed - parses the latest version from hashicorp download page (instead of GitHub)
    • Avoids github api limit of 60 unauthenticated requests per hour
    • Useful if github release differs from version on hashicorp downloads
terraform-installer - wget dependency checking

Published by robertpeteuil over 6 years ago

Adds check for wget submitted in PR #3

terraform-installer - Improved Version Detection and Removed curl Dependancy

Published by robertpeteuil over 6 years ago

  • Corrects error on macOS with default awk when detecting latest version
  • Switched to wget instead of curl throughout, removing curl as a dependency
  • Fixed spelling & adjusted help message
terraform-installer - Enhance CPU Architecture Detection

Published by robertpeteuil over 6 years ago

CPU Architecture Detection Algorithm Enhanced

  • new common algorithm that works across deb and rpm distros
  • uses lscpu results to determine CPU Arch if possible
  • as a fallback it searches the flags in /proc/cpuinfo to determine Arch
  • if arch is an arm variant, changes to just "arm" for proper function in Terraform download URL
terraform-installer - Add Option for Deterministic Sudo Install

Published by robertpeteuil over 6 years ago

Added parameter and variable to allow script to run without prompting for install destination

  • -a parameter specifies to always use sudo to install to /usr/local/bin
  • This can be set as default by uncommenting line 14 to set sudoInstall=true
  • user may need to enter sudo password unless password-less sudo is enabled
terraform-installer - Initial Public Release

Published by robertpeteuil over 6 years ago

Initial Release of Terraform Installation Script