mirror of
https://github.com/hashicorp/packer.git
synced 2026-02-24 02:10:31 -05:00
31 lines
773 B
Go
31 lines
773 B
Go
package common
|
|
|
|
const (
|
|
// DefaultPasswordStr, DefaultPasswordNum and DefaultPasswordSpe are used to general default value of root password of UHost instance
|
|
DefaultPasswordNum = "012346789"
|
|
DefaultPasswordStr = "abcdefghijklmnopqrstuvwxyz"
|
|
DefaultPasswordSpe = "-_"
|
|
)
|
|
|
|
const (
|
|
InstanceStateRunning = "Running"
|
|
InstanceStateStopped = "Stopped"
|
|
|
|
ImageStateAvailable = "Available"
|
|
ImageStateUnavailable = "Unavailable"
|
|
|
|
BootDiskStateNormal = "Normal"
|
|
OsTypeWindows = "Windows"
|
|
SecurityGroupNonWeb = "recommend non web"
|
|
IpTypePrivate = "Private"
|
|
)
|
|
|
|
const (
|
|
DefaultCreateImageTimeout = 3600
|
|
)
|
|
|
|
var BootDiskTypeMap = NewStringConverter(map[string]string{
|
|
"cloud_ssd": "CLOUD_SSD",
|
|
"local_normal": "LOCAL_NORMAL",
|
|
"local_ssd": "LOCAL_SSD",
|
|
})
|