Skip to content

Commit

Permalink
Add mount point to fstab
Browse files Browse the repository at this point in the history
Fixes ocp-power-automation#40

Signed-off-by: Yussuf Shaikh <yussuf@us.ibm.com>
  • Loading branch information
yussufsh committed Jun 22, 2020
1 parent b4eb9d3 commit 719673b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/1_bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ resource "null_resource" "setup_nfs_disk" {
"sudo chmod +x /tmp/create_disk_link.sh",
"/tmp/create_disk_link.sh",
"sudo mkfs.ext4 -F /dev/${local.disk_config.disk_name}",
"sudo mount /dev/${local.disk_config.disk_name} ${local.storage_path}",
"echo '/dev/${local.disk_config.disk_name} ${local.storage_path} ext4 defaults 0 0' | sudo tee -a /etc/fstab > /dev/null",
"sudo mount ${local.storage_path}",
]
}
}

0 comments on commit 719673b

Please sign in to comment.