Skip to content
This repository has been archived by the owner on Aug 18, 2023. It is now read-only.

Add mount point to fstab #9

Merged
merged 1 commit into from
Jun 22, 2020
Merged
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
2 changes: 1 addition & 1 deletion modules/1_prepare/prepare.tf
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ resource "null_resource" "setup_nfs_disk" {
inline = [
"rm -rf mkdir ${local.storage_path}; mkdir -p ${local.storage_path}; chmod -R 755 ${local.storage_path}",
"sudo chmod +x /tmp/find_disk.sh",
"disk_name=$(/tmp/find_disk.sh); sudo mkfs.ext4 -F $disk_name; sudo mount $disk_name ${local.storage_path}",
"disk_name=$(/tmp/find_disk.sh); sudo mkfs.ext4 -F $disk_name; echo '$disk_name ${local.storage_path} ext4 defaults 0 0' | sudo tee -a /etc/fstab > /dev/null; sudo mount ${local.storage_path}",
]
}
}