Files
Packer-Cn/common/config.go
T

15 lines
519 B
Go
Raw Normal View History

2013-07-19 14:59:04 -04:00
package common
import (
2017-01-14 17:56:04 -08:00
"time"
2013-07-19 14:59:04 -04:00
)
2017-01-14 17:56:04 -08:00
// PackerKeyEnv is used to specify the key interval (delay) between keystrokes
// sent to the VM, typically in boot commands. This is to prevent host CPU
// utilization from causing key presses to be skipped or repeated incorrectly.
const PackerKeyEnv = "PACKER_KEY_INTERVAL"
// PackerKeyDefault 100ms is appropriate for shared build infrastructure while a
// shorter delay (e.g. 10ms) can be used on a workstation. See PackerKeyEnv.
const PackerKeyDefault = 100 * time.Millisecond