Merge pull request #3390 from nakato/vultr-ssh

Vultr ssh
This commit is contained in:
Justin Cormack 2019-07-22 10:09:44 +01:00 committed by GitHub
commit 2c89f304ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -14,6 +14,7 @@ onboot:
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
- name: metadata
image: linuxkit/metadata:v0.7
command: ["/usr/bin/metadata", "vultr"]
services:
- name: getty
image: linuxkit/getty:v0.7

View File

@ -61,6 +61,11 @@ func (p *ProviderVultr) Extract() ([]byte, error) {
// instance-id
vultrMetaGet("instanceid", "instance_id", 0644)
// ssh
if err := p.handleSSH(); err != nil {
log.Printf("Vultr: Failed to get ssh data: %s", err)
}
return nil, nil
}