Open queglay opened 2 years ago
Submitted this PR, in similar light to the same feature toggle on install-vault: https://github.com/hashicorp/terraform-aws-consul/pull/242
Although not strictly a fix for whatever issues might exist in the AWS container config defaults for yum, this PR allows us to run:
yum update -y --skip-broken
...Because then install-consul --skip-broken
will not run the contained standard yum update -y
.
This provides an added advantage for reproducible image builds for users who wish to produce base images with apt/yum update before running the install-consul installer. It can improve stability over time (since apt/yum update could be different any day of the week) and reduce exposure to vulnerabilities that can be inserted without inspection.
Describe the bug I am using codebuild in a VPC to deploy consul and other infra onto EC2 instances. However there are problems with the consul installer and yum dependencies that prevent success. All other Hashicorp products I use seem to install fine and work well (Vault, Terraform, Packer). Terragrunt is also fine.
To Reproduce Run this from buildspec.yml on AWS. The codebuild container will fail. I am using the latest AWS image - aws/codebuild/amazonlinux2-x86_64-standard:3.0
The errors log produces:
Expected behavior The install executable should be able to handle the dependencies without failure.