Skip to content

Commit

Permalink
feat: support al2023 images
Browse files Browse the repository at this point in the history
  • Loading branch information
sgtoj committed Jul 1, 2024
1 parent bb3e023 commit 7e92958
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 4 additions & 3 deletions modules/teleport-node/assets/cloud-init/install_packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
# --- script------------------------------------------------

yum install -y binutils
yum install -y yum-plugin-kernel-livepatch
yum kernel-livepatch enable -y
yum install -y kpatch-dnf
yum kernel-livepatch -y auto
yum install -y kpatch-runtime

systemctl enable kpatch.service
amazon-linux-extras enable livepatch
systemctl start kpatch.service

yum update -y
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ function cwagent_ctl {
}
export -f cwagent_ctl

touch /var/log/cloud-init-output.log
chmod 644 /var/log/cloud-init-output.log

touch /var/log/messages
chmod 644 /var/log/messages

cwagent_ctl -a fetch-config -s -m ec2 \
Expand Down

0 comments on commit 7e92958

Please sign in to comment.