Resizing Linux distribution disk layouts #267
-
Code of Conduct
I had a queation about the partition scheme used. I get that it is based on CIS standards of partition separation. What is unclear to me, is how to manage it. On this repo as is, you are using 60GB drives, but only 38GB seem being used. If using terraform to then deploy to the 60GB or to 100GB, is there any guidance on how to grow a partition, ie say /var through the automation? Is the 22GB unallocated intentional? I am new to this, so if I am off base let me know. Thanks, and awesome work on this effort!! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Transferred to Discussions. |
Beta Was this translation helpful? Give feedback.
-
I didn't realize discussions was available :) This is what I sort of came to understand for this image. growpart /dev/sda 3 |
Beta Was this translation helpful? Give feedback.
-
When using the Terraform provider for vSphere, for example, you could use the resource "null_resource" "extend_storage" {
provisioner "remote-exec" {
inline = [
"sudo ... ",
]
connection {
type = "ssh"
host = vsphere_virtual_machine.my_machine.vapp[0].properties.ip0
user = var.my_username
password = var.my_password
port = "22"
agent = false
}
}
}
|
Beta Was this translation helpful? Give feedback.
When using the Terraform provider for vSphere, for example, you could use the
remote-exec
provisioner to run inline commands or an array scripts to perform the task.