This repository has been archived by the owner on Jan 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
/
const.go
85 lines (78 loc) · 4 KB
/
const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package acsengine
const (
// DefaultFirstConsecutiveStaticIP specifies the static IP address on master 0 for DCOS or Swarm
DefaultFirstConsecutiveStaticIP = "172.16.0.5"
// DefaultDCOSMasterSubnet specifies the default master subnet for a DCOS cluster
DefaultDCOSMasterSubnet = "192.168.255.0/24"
// DefaultDCOSFirstConsecutiveStaticIP specifies the static IP address on master 0 for a DCOS cluster
DefaultDCOSFirstConsecutiveStaticIP = "192.168.255.5"
// DefaultDCOSBootstrapStaticIP specifies the static IP address on bootstrap for a DCOS cluster
DefaultDCOSBootstrapStaticIP = "192.168.255.240"
// DefaultDockerBridgeSubnet specifies the default subnet for the docker bridge network for masters and agents.
DefaultDockerBridgeSubnet = "172.17.0.1/16"
// DefaultAgentSubnetTemplate specifies a default agent subnet
DefaultAgentSubnetTemplate = "10.%d.0.0/16"
// DefaultContainerRuntime is docker
DefaultContainerRuntime = "docker"
// DefaultGeneratorCode specifies the source generator of the cluster template.
DefaultGeneratorCode = "dcos-engine"
// DefaultOrchestratorName specifies the 3 character orchestrator code of the cluster template and affects resource naming.
DefaultOrchestratorName = "dcos"
)
const (
// DCOSMaster represents the master node type
DCOSMaster DCOSNodeType = "DCOSMaster"
// DCOSPrivateAgent represents the private agent node type
DCOSPrivateAgent DCOSNodeType = "DCOSPrivateAgent"
// DCOSPublicAgent represents the public agent node type
DCOSPublicAgent DCOSNodeType = "DCOSPublicAgent"
)
const (
//DefaultExtensionsRootURL Root URL for extensions
DefaultExtensionsRootURL = "https://raw.githubusercontent.com/Azure/dcos-engine/master/"
// DefaultDockerEngineRepo for grabbing docker engine packages
DefaultDockerEngineRepo = "https://download.docker.com/linux/ubuntu"
// DefaultDockerComposeURL for grabbing docker images
DefaultDockerComposeURL = "https://github.com/docker/compose/releases/download"
//AzureEdgeDCOSBootstrapDownloadURL is the azure edge CDN download url
AzureEdgeDCOSBootstrapDownloadURL = "https://dcosio.azureedge.net/dcos/%s/bootstrap/%s.bootstrap.tar.xz"
//AzureChinaCloudDCOSBootstrapDownloadURL is the China specific DCOS package download url.
AzureChinaCloudDCOSBootstrapDownloadURL = "https://acsengine.blob.core.chinacloudapi.cn/dcos/%s.bootstrap.tar.xz"
//AzureEdgeDCOSWindowsBootstrapDownloadURL
)
const (
dcosWindowsProvision = "dcos/dcosWindowsProvision.ps1"
dcosProvisionSource = "dcos/dcosprovisionsource.sh"
dcosProvision = "dcos/dcosprovision.sh"
dcosBootstrapProvision = "dcos/bootstrapprovision.sh"
dcosCustomData1110 = "dcos/dcos1.11.0.customdata.t"
dcosCustomData1112 = "dcos/dcos1.11.2.customdata.t"
)
const (
agentOutputs = "agentoutputs.t"
agentParams = "agentparams.t"
classicParams = "classicparams.t"
dcosAgentResourcesVMAS = "dcos/dcosagentresourcesvmas.t"
dcosWindowsAgentResourcesVMAS = "dcos/dcosWindowsAgentResourcesVmas.t"
dcosAgentResourcesVMSS = "dcos/dcosagentresourcesvmss.t"
dcosWindowsAgentResourcesVMSS = "dcos/dcosWindowsAgentResourcesVmss.t"
dcosAgentVars = "dcos/dcosagentvars.t"
dcosParams = "dcos/dcosparams.t"
dcosBaseFile = "dcos/dcosbase.t"
dcosBootstrapVars = "dcos/bootstrapvars.t"
dcosBootstrapParams = "dcos/bootstrapparams.t"
dcosBootstrapResources = "dcos/bootstrapresources.t"
dcosBootstrapCustomdata = "dcos/bootstrapcustomdata.yml"
dcosMasterVars = "dcos/dcosmastervars.t"
dcosMasterResources = "dcos/dcosmasterresources.t"
iaasOutputs = "iaasoutputs.t"
masterOutputs = "masteroutputs.t"
masterParams = "masterparams.t"
windowsParams = "windowsparams.t"
)
const (
azurePublicCloud = "AzurePublicCloud"
azureChinaCloud = "AzureChinaCloud"
azureGermanCloud = "AzureGermanCloud"
azureUSGovernmentCloud = "AzureUSGovernmentCloud"
)