Skip to content

Resizing Linux distribution disk layouts #267

Closed Locked Answered by tenthirtyam
rismoney asked this question in Help
Discussion options

You must be logged in to vote

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.

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
    }
  }
}

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tenthirtyam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
2 participants
Converted from issue

This discussion was converted from issue #266 on August 30, 2022 11:53.