File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
modules/tfe_init_replicated/templates Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,19 @@ function install_packages {
5
5
# Description: Install AWS packages
6
6
7
7
%{ if distribution == "rhel" || distribution == "amazon-linux-2023" ~}
8
- echo "[$(date +"%FT%T")] [Terraform Enterprise] Install unzip and firewalld with yum" | tee -a $log_pathname
9
- yum install -y firewalld unzip
8
+ echo "[$(date +"%FT%T")] [Terraform Enterprise] Install unzip with yum" | tee -a $log_pathname
9
+ yum install -y unzip
10
10
11
11
%{ if distribution == "rhel" ~}
12
+ echo "[$(date +"%FT%T")] [Terraform Enterprise] Install firewalld with yum" | tee -a $log_pathname
13
+ yum install -y firewalld
14
+
12
15
# Amazon Linux 2023 already has amazon-ssm-agent so install on rhel only
13
16
echo "[$(date +"%FT%T")] [Terraform Enterprise] Install ssm-agent with yum" | tee -a $log_pathname
14
17
yum install -y https://s3.amazonaws.com/ec2-downloads-windows/SSMAgent/latest/linux_amd64/amazon-ssm-agent.rpm
18
+
19
+ systemctl enable firewalld
20
+ systemctl start firewalld
15
21
%{ endif ~}
16
22
17
23
%{ if distribution == "amazon-linux-2023" ~}
@@ -26,8 +32,6 @@ function install_packages {
26
32
27
33
systemctl enable amazon-ssm-agent
28
34
systemctl start amazon-ssm-agent
29
- systemctl enable firewalld
30
- systemctl start firewalld
31
35
%{ else ~}
32
36
echo "[$(date +"%FT%T")] [Terraform Enterprise] Install unzip with apt-get" | tee -a $log_pathname
33
37
retry 10 apt-get update -y
You can’t perform that action at this time.
0 commit comments