зеркало из https://github.com/Azure/ARO-RP.git
add vmssDomainNameLabel
This commit is contained in:
Родитель
e90eb9c2b6
Коммит
160884d443
|
@ -49,6 +49,9 @@
|
|||
},
|
||||
"sshPublicKey": {
|
||||
"value": ""
|
||||
},
|
||||
"vmssDomainNameLabel": {
|
||||
"value": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -64,6 +64,9 @@
|
|||
},
|
||||
"sshPublicKey": {
|
||||
"type": "string"
|
||||
},
|
||||
"vmssDomainNameLabel": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"resources": [
|
||||
|
@ -198,7 +201,12 @@
|
|||
},
|
||||
"primary": true,
|
||||
"publicIPAddressConfiguration": {
|
||||
"name": "rp-vmss-pip"
|
||||
"name": "rp-vmss-pip",
|
||||
"properties": {
|
||||
"dnsSettings": {
|
||||
"domainNameLabel": "[parameters('vmssDomainNameLabel')]"
|
||||
}
|
||||
}
|
||||
},
|
||||
"loadBalancerBackendAddressPools": [
|
||||
{
|
||||
|
@ -223,7 +231,7 @@
|
|||
"autoUpgradeMinorVersion": true,
|
||||
"settings": {},
|
||||
"protectedSettings": {
|
||||
"script": "[base64(concat(base64ToString('c2V0IC1leAoK'),'MDMCERTIFICATE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmCertificate')),''')\n','MDMFRONTENDURL=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmFrontendUrl')),''')\n','MDMMETRICNAMESPACE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmMetricNamespace')),''')\n','MDMMONITORINGACCOUNT=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmMonitoringAccount')),''')\n','MDMPRIVATEKEY=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmPrivateKey')),''')\n','PULLSECRET=$(base64 -d \u003c\u003c\u003c''',base64(parameters('pullSecret')),''')\n','RPIMAGE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('rpImage')),''')\n','RPIMAGEAUTH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C5jb25mCgpybSAvZXRjL21vdGQuZC8qCj4vZXRjL2NvbnRhaW5lcnMvbm9kb2NrZXIKCihzbGVlcCAzMDsgcmVib290KSAmCg==')))]"
|
||||
"script": "[base64(concat(base64ToString('c2V0IC1leAoK'),'MDMCERTIFICATE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmCertificate')),''')\n','MDMFRONTENDURL=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmFrontendUrl')),''')\n','MDMMETRICNAMESPACE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmMetricNamespace')),''')\n','MDMMONITORINGACCOUNT=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmMonitoringAccount')),''')\n','MDMPRIVATEKEY=$(base64 -d \u003c\u003c\u003c''',base64(parameters('mdmPrivateKey')),''')\n','PULLSECRET=$(base64 -d \u003c\u003c\u003c''',base64(parameters('pullSecret')),''')\n','RPIMAGE=$(base64 -d \u003c\u003c\u003c''',base64(parameters('rpImage')),''')\n','RPIMAGEAUTH=$(base64 -d \u003c\u003c\u003c''',base64(parameters('rpImageAuth')),''')\n','\n',base64ToString('c3lzdGVtY3RsIHN0b3AgYXJvcnAuc2VydmljZSB8fCB0cnVlCgp5dW0gLXkgdXBkYXRlIC14IFdBTGludXhBZ2VudAoKcnBtIC0taW1wb3J0IGh0dHBzOi8vZGwuZmVkb3JhcHJvamVjdC5vcmcvcHViL2VwZWwvUlBNLUdQRy1LRVktRVBFTC04Cgp5dW0gLXkgaW5zdGFsbCBodHRwczovL2RsLmZlZG9yYXByb2plY3Qub3JnL3B1Yi9lcGVsL2VwZWwtcmVsZWFzZS1sYXRlc3QtOC5ub2FyY2gucnBtIHx8IHRydWUKCmNhdCA+L2V0Yy95dW0ucmVwb3MuZC9henVyZS1jbGkucmVwbyA8PCdFT0YnClthenVyZWNvcmVdCm5hbWU9YXp1cmVjb3JlCmJhc2V1cmw9aHR0cHM6Ly9wYWNrYWdlcy5taWNyb3NvZnQuY29tL3l1bX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CRSUElNQUdFIFwKICBycApFeGVjU3RvcD0vdXNyL2Jpbi9kb2NrZXIgc3RvcCAtdCA5MCAlTgpSZXN0YXJ0PWFsd2F5cwoKW0luc3RhbGxdCldhbnRlZEJ5PW11bHRpLXVzZXIudGFyZ2V0CkVPRgoKZm9yIHNlcnZpY2UgaW4gYXJvcnAgY2hyb255ZDsgZG8KICBzeXN0ZW1jdGwgZW5hYmxlICRzZXJ2aWNlLnNlcnZpY2UKZG9uZQoKY2hjb24gLVIgc3lzdGVtX3U6b2JqZWN0X3I6dmFyX2xvZ190OnMwIC92YXIvb3B0L21pY3Jvc29mdC9saW51eG1vbmFnZW50Cgpmb3Igc2VydmljZSBpbiBhdW9tcyBhenNlY2QgYXpzZWNtb25kIG1kc2Q7IGRvCiAgc3lzdGVtY3RsIGRpc2FibGUgJHNlcnZpY2Uuc2VydmljZQogIHN5c3RlbWN0bCBtYXNrICRzZXJ2aWNlLnNlcnZpY2UKZG9uZQoKcm0gL2V0Yy9yc3lzbG9nZC4xMC1tZHNkLmNvbmYKCnJtIC9ldGMvbW90ZC5kLyoKPi9ldGMvY29udGFpbmVycy9ub2RvY2tlcgoKKHNsZWVwIDMwOyByZWJvb3QpICYK')))]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -389,6 +389,11 @@ rm /etc/motd.d/*
|
|||
Primary: to.BoolPtr(true),
|
||||
PublicIPAddressConfiguration: &mgmtcompute.VirtualMachineScaleSetPublicIPAddressConfiguration{
|
||||
Name: to.StringPtr("rp-vmss-pip"),
|
||||
VirtualMachineScaleSetPublicIPAddressConfigurationProperties: &mgmtcompute.VirtualMachineScaleSetPublicIPAddressConfigurationProperties{
|
||||
DNSSettings: &mgmtcompute.VirtualMachineScaleSetPublicIPAddressConfigurationDNSSettings{
|
||||
DomainNameLabel: to.StringPtr("[parameters('vmssDomainNameLabel')]"),
|
||||
},
|
||||
},
|
||||
},
|
||||
LoadBalancerBackendAddressPools: &[]mgmtcompute.SubResource{
|
||||
{
|
||||
|
@ -776,6 +781,7 @@ func (g *generator) template() *arm.Template {
|
|||
"rpImage",
|
||||
"rpImageAuth",
|
||||
"sshPublicKey",
|
||||
"vmssDomainNameLabel",
|
||||
)
|
||||
} else {
|
||||
params = append(params,
|
||||
|
|
Загрузка…
Ссылка в новой задаче