Skip to content

Commit 5f3ce2b

Browse files
fix terraform build (#1712)
1 parent 431e35d commit 5f3ce2b

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

terraform/cloudinit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ users:
1616

1717
runcmd:
1818
- bash /vagrant/vagrant/base.sh
19+
- sudo chmod a+rwx /mnt
1920
- python3.11 -m pip install -U pip
2021
- python3.11 -m pip install -r /vagrant/resources/requirements.txt

terraform/resources/terraform-worker-config.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Check AMI_ID present or not as env variable if not then set
22
AMI_ID() {
3-
echo "ami-29ebb519"
3+
echo "ami-5189a661"
44
}
55

66
if [ -z "${AMI_ID}" ]; then

vagrant/aws-packer.json

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@
99
"ssh_account": "ubuntu",
1010
"linux_distro": "ubuntu",
1111
"jdk_version": "8",
12-
"jdk_arch": "x64",
13-
"enable_ena_driver_install": "true"
12+
"jdk_arch": "x64"
1413

1514
},
1615
"builders": [{
@@ -39,8 +38,7 @@
3938
"volume_size": 60,
4039
"volume_type": "gp3",
4140
"delete_on_termination": true
42-
}],
43-
"ena_support": true
41+
}]
4442
}],
4543
"provisioners": [
4644
{

vagrant/worker-ami.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,10 @@
6060
"sudo mkdir -p ~/.m2",
6161
"sudo chown -R {{user `ssh_account`}}:{{user `ssh_account`}} ~/.m2",
6262
"sudo chown -R {{user `ssh_account`}}:{{user `ssh_account`}} /vagrant",
63-
"sudo ln -s /vagrant /opt/kafka"
63+
"sudo ln -s /vagrant /opt/kafka",
64+
"sudo mkdir -p /mnt",
65+
"sudo chmod a+rwx /mnt",
66+
"sudo chmod a+rw /opt"
6467
]
6568
},
6669
{

0 commit comments

Comments
 (0)