hashicorp / terraform-aws-consul

A Terraform Module for how to run Consul on AWS using Terraform and Packer
Apache License 2.0
401 stars 487 forks source link

Skip package update with args #242

Open queglay opened 2 years ago

queglay commented 2 years ago

Description

Adds feature toggle --skip-package-update to install-consul.

Although not strictly a fix for all apt/yum package issues one might encounter, this suggested feature toggle is consistent with the same feature toggle with install-vault --skip-package-update.

yum/apt update is not strictly deterministic and produces different results, security vulnerabilities, or fails over time. For this reason some users may chose to produce base images that run yum update, and then continue to run installers on subsequent image builds. For this to be possible, we need the ability to install software like consul without yum/apt update, so this feature toggle allows users to do that.

Documentation

run install-consul --skip-package-update to avoid running yum/apt update with the installer. It is recommended that you have already run yum/apt update at some previous point if you choose to use this feature toggle.

TODOs

Please ensure all of these TODOs are completed before asking for a review.

Related Issues

hashicorp-cla commented 2 years ago

CLA assistant check
All committers have signed the CLA.