diff --git a/modules/teleport-node/assets/cloud-init/install_packages.sh b/modules/teleport-node/assets/cloud-init/install_packages.sh index 342083f..b8ae64f 100644 --- a/modules/teleport-node/assets/cloud-init/install_packages.sh +++ b/modules/teleport-node/assets/cloud-init/install_packages.sh @@ -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 diff --git a/modules/teleport-node/assets/cloud-init/start_core_services.sh b/modules/teleport-node/assets/cloud-init/start_core_services.sh index ccca61d..35f5c33 100644 --- a/modules/teleport-node/assets/cloud-init/start_core_services.sh +++ b/modules/teleport-node/assets/cloud-init/start_core_services.sh @@ -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 \