Closed yeongjukang closed 5 years ago
additional screenshot from coreos server
Hey @979156
Thanks for creating the bug & enhancement. I'll take a look into this and see what the issue might be
@979156
The error you are getting with your provisioner upload is because you did not supply SSH credentials. This is why you are getting the ssh: unable to authenticate...
error.
https://www.terraform.io/docs/provisioners/connection.html
You will need to setup your provisioner block with a connection node like this:
provisioner "file" {
source = "common.sh"
destination = "/tmp/common.sh"
connection {
type = "ssh"
host = "${vultr_server.master_standalone.main_ip}"
user = "root"
password = "${vultr_server.master_standalone.default_password}"
}
}
The output should then be similar to this
vultr_server.master_standalone: Creating...
vultr_server.master_standalone: Still creating... [10s elapsed]
vultr_server.master_standalone: Still creating... [20s elapsed]
vultr_server.master_standalone: Still creating... [30s elapsed]
vultr_server.master_standalone: Still creating... [40s elapsed]
vultr_server.master_standalone: Still creating... [50s elapsed]
vultr_server.master_standalone: Still creating... [1m0s elapsed]
vultr_server.master_standalone: Still creating... [1m10s elapsed]
vultr_server.master_standalone: Provisioning with 'file'...
vultr_server.master_standalone: Creation complete after 1m16s [id=27167644]
@ddymko thanks for reply!
Describe the bug I think file provisioner is not working correctly. When I was on #87 , my file didn't appear on my remote host.
To Reproduce
Expected behavior
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information where applicable:
Additional context
Add any other context about the problem here.