-
Notifications
You must be signed in to change notification settings - Fork 7
remote-exec ssh host not populated #98
Comments
I agree that it would be better if default resource "vultr_server" "this" {
# ...
connection {
host = self.main_ip
agent = true
}
} That an empty |
You will need to define a connection block within your
|
Thanks for the replies guys. I guess not a bug then, I had assumed that the provider would specify it. |
@hadleyrich It should do/usually does, per core docs. I suppose it's not a bug, but IMO would be good to add to the provider @ddymko. |
@OJFord Agreed, I've not come across it before and it would be a nice to have. Perhaps a feature request or included in documentation, rather than a bug. |
@OJFord This isn't a bug since this is not a mandatory feature required by Terraform and there is a way to define your connection information. Also not all providers do this there are some cloud providers who do and some who don't. @OJFord @hadleyrich I created a new enhancement ticket #100 that addresses this topic. It will set the connection information for regular instances and baremetal. This will remove the headache of having to set the connection blocks. |
When adding a remote-exec to a config it's acutally executed on the localhost as the host field is not populated:
Some output:
The reason it shows connected there is because I can SSH to my localhost.
The text was updated successfully, but these errors were encountered: