* Fix the wrong arch of target host, * get the OS arch with `uname -a` * refactor the SSHConnectionTimeout constant * only provision on remote host
15 lines
286 B
Go
15 lines
286 B
Go
package provisioner
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
// SSHConnectionTimeout default timeout for ssh connection
|
|
const SSHConnectionTimeout = 10 * time.Second
|
|
|
|
// Provisioner define provisioner interface
|
|
type Provisioner interface {
|
|
Provision(ctx context.Context, isRemote bool) error
|
|
}
|