File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -132,17 +132,26 @@ the kickstart files to the Linux guest operating system during the build.
132
132
common_data_source = " http"
133
133
` ` `
134
134
135
- ??? + tip " IPTables "
135
+ ??? + tip " Firewall "
136
136
137
137
Packer includes a built-in HTTP server that is used to serve the kickstart files for Linux
138
138
machine image builds.
139
139
140
- If iptables is enabled on your Packer host, you will need to open ` common_http_port_min` through
140
+ If a firewall is enabled on your Packer host, you will need to open ` common_http_port_min` through
141
141
` common_http_port_max` ports.
142
142
143
- ` ` ` shell
144
- iptables -A INPUT -p tcp --match multiport --dports 8000:8099 -j ACCEPT
145
- ` ` `
143
+ :fontawesome-brands-linux: ** VMware Photon OS**
144
+
145
+ ` ` ` shell
146
+ iptables -A INPUT -p tcp --match multiport --dports 8000:8099 -j ACCEPT
147
+ ` ` `
148
+
149
+ :fontawesome-brands-ubuntu: ** Ubuntu**
150
+
151
+ ` ` ` shell
152
+ sudo ufw allow 8000:8099/tcp
153
+ sudo ufw reload
154
+ ` ` `
146
155
147
156
You can change the ` common_data_source` from ` http` to ` disk` to build supported Linux machine
148
157
images without the need to use Packer' s HTTP server. This is useful for environments that may not be
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ The following additional software packages must be installed on the operating sy
148
148
sudo apt update
149
149
sudo apt install software-properties-common
150
150
sudo add-apt-repository --yes --update ppa:ansible/ansible
151
- sudo apt install -y python3 python3-pip ansible git jq xorriso whois unzip
151
+ sudo apt install -y python3 python3-pip ansible git jq xorriso whois unzip terraform
152
152
echo "ansible-core $(ansible --version | grep 'ansible.*core' | awk '{print $3}' | tr -d ']')"
153
153
echo "terraform $(terraform version | awk -Fv '{print $2}' | head -n 1)"
154
154
export PATH="$HOME/.local/bin:$PATH"
You can’t perform that action at this time.
0 commit comments