Skip to content

Commit c7b180e

Browse files
authored
Merge pull request #13 from cruxstack/al2023
add support for al2023 and non us-east-1 regions
2 parents db40585 + 7e92958 commit c7b180e

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

modules/teleport-node/assets/cloud-init/install_packages.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
# --- script------------------------------------------------
44

55
yum install -y binutils
6-
yum install -y yum-plugin-kernel-livepatch
7-
yum kernel-livepatch enable -y
6+
yum install -y kpatch-dnf
7+
yum kernel-livepatch -y auto
88
yum install -y kpatch-runtime
99

1010
systemctl enable kpatch.service
11-
amazon-linux-extras enable livepatch
11+
systemctl start kpatch.service
12+
1213
yum update -y

modules/teleport-node/assets/cloud-init/start_core_services.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ function cwagent_ctl {
55
}
66
export -f cwagent_ctl
77

8+
touch /var/log/cloud-init-output.log
89
chmod 644 /var/log/cloud-init-output.log
10+
11+
touch /var/log/messages
912
chmod 644 /var/log/messages
1013

1114
cwagent_ctl -a fetch-config -s -m ec2 \

modules/teleport-node/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ locals {
6767
data_dir = "/var/lib/teleport"
6868
storage = {
6969
type = "dynamodb"
70-
region = "us-east-1"
70+
region = local.aws_region_name
7171
table_name = local.teleport_ddb_table_state_name
7272
audit_events_uri = "dynamodb://${local.teleport_ddb_table_events_name}"
7373
audit_sessions_uri = "s3://${local.teleport_bucket_name}/records"
@@ -128,7 +128,7 @@ locals {
128128
enabled = "yes"
129129
aws = [{
130130
types = ["rds", "redshift"]
131-
regions = ["us-east-1"]
131+
regions = [local.aws_region_name]
132132
tags = {
133133
"*" : "*"
134134
}

0 commit comments

Comments
 (0)