Skip to content

Do firewall setup on amazon linux 2023 as well. #162

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions modules/tfe_init_replicated/templates/install_packages.func
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ function install_packages {

%{ if distribution == "amazon-linux-2023" ~}
echo "[$(date +"%FT%T")] [Terraform Enterprise] Remove existing docker and install v24 with yum" | tee -a $log_pathname
yum remove docker -y
yum install docker-24.0.5-1.amzn2023.0.3 -y
yum -y remove docker
yum clean packages
yum -y install docker-24.0.5-1.amzn2023.0.3

systemctl start docker
systemctl enable docker
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ $install_pathname \
# -----------------------------------------------------------------------------
# Add docker0 to firewalld (for Red Hat instances only)
# -----------------------------------------------------------------------------
%{ if distribution == "rhel" && cloud != "google" ~}
%{ if distribution == "amazon-linux-2023" || distribution == "rhel" && cloud != "google" ~}
os_release=$(cat /etc/os-release | grep VERSION_ID | sed "s/VERSION_ID=\"\(.*\)\"/\1/g")
if (( $(echo "$os_release < 8.0" | bc -l ) )); then
echo "[$(date +"%FT%T")] [Terraform Enterprise] Disable SELinux (temporary)" | tee -a $log_pathname
Expand Down
Loading