Deploy Tetrate Service Bridge Demo on Azure Kubernetes Service (AKS), Google Kubernetes Engine (GKE) and/or Elastic Kubernetes Service (EKS) using Terraform
Apache License 2.0
12
stars
10
forks
source link
Set `package_update: true` to address cloud-init install package fail… #196
apparently if the repo is unavailable the cloud-init install packages process mail fail, so the package_update ~ apt update is required to be set to True to work around it, also repo_update is set to True by default which is package_update but for AWS only(- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html#amazon-linux-cloud-init) which apparently failed to work recently, so package directives have been added.
This is to avoid seeing the package fail to install under /var/log/cloud-init.log
9:14
2023-01-06 13:43:19,614 - util.py[DEBUG]: apt-install [eatmydata apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install language-pack-en docker.io nginx tmux vim jq awscli skopeo] took 0.153 seconds
2023-01-06 13:43:19,614 - util.py[WARNING]: Failed to install packages: ['language-pack-en', 'docker.io', 'nginx', 'tmux', 'vim', 'jq', 'awscli', 'skopeo']
2023-01-06 13:43:19,614 - util.py[DEBUG]: Failed to install packages: ['language-pack-en', 'docker.io', 'nginx', 'tmux', 'vim', 'jq', 'awscli', 'skopeo']
Reading package lists...
W: Failed to fetch http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/jammy/InRelease 503 Service Unavailable [IP: 52.15.102.108 80]
W: Failed to fetch http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/jammy-updates/InRelease 503 Service Unavailable [IP: 52.15.102.108 80]
W: Failed to fetch http://us-east-2.ec2.archive.ubuntu.com/ubuntu/dists/jammy-backports/InRelease 503 Service Unavailable [IP: 52.15.102.108 80]
…ures
apparently if the repo is unavailable the cloud-init install packages process mail fail, so the
package_update
~apt update
is required to be set toTrue
to work around it, alsorepo_update
is set toTrue
by default which ispackage_update
but for AWS only(- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-ami-basics.html#amazon-linux-cloud-init) which apparently failed to work recently, sopackage
directives have been added.This is to avoid seeing the package fail to install under /var/log/cloud-init.log