mirror of
https://github.com/openshift/installer.git
synced 2026-02-05 06:46:36 +01:00
Revert "CORS-3883: Remove user-assigned identity from ARM template"
This commit is contained in:
@@ -58,6 +58,7 @@
|
||||
"masterLoadBalancerName" : "[parameters('baseName')]",
|
||||
"internalLoadBalancerName" : "[concat(parameters('baseName'), '-internal-lb')]",
|
||||
"sshKeyPath" : "/home/core/.ssh/authorized_keys",
|
||||
"identityName" : "[concat(parameters('baseName'), '-identity')]",
|
||||
"vmName" : "[concat(parameters('baseName'), '-bootstrap')]",
|
||||
"nicName" : "[concat(variables('vmName'), '-nic')]",
|
||||
"galleryName": "[concat('gallery_', replace(parameters('baseName'), '-', '_'))]",
|
||||
@@ -119,6 +120,12 @@
|
||||
"type" : "Microsoft.Compute/virtualMachines",
|
||||
"name" : "[variables('vmName')]",
|
||||
"location" : "[variables('location')]",
|
||||
"identity" : {
|
||||
"type" : "userAssigned",
|
||||
"userAssignedIdentities" : {
|
||||
"[resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/', variables('identityName'))]" : {}
|
||||
}
|
||||
},
|
||||
"dependsOn" : [
|
||||
"[concat('Microsoft.Network/networkInterfaces/', variables('nicName'))]"
|
||||
],
|
||||
|
||||
@@ -80,6 +80,7 @@
|
||||
"masterLoadBalancerName" : "[parameters('baseName')]",
|
||||
"internalLoadBalancerName" : "[concat(parameters('baseName'), '-internal-lb')]",
|
||||
"sshKeyPath" : "/home/core/.ssh/authorized_keys",
|
||||
"identityName" : "[concat(parameters('baseName'), '-identity')]",
|
||||
"galleryName": "[concat('gallery_', replace(parameters('baseName'), '-', '_'))]",
|
||||
"imageName" : "[concat(parameters('baseName'), if(equals(parameters('hyperVGen'), 'V2'), '-gen2', ''))]",
|
||||
"copy" : [
|
||||
@@ -131,6 +132,12 @@
|
||||
},
|
||||
"name" : "[variables('vmNames')[copyIndex()]]",
|
||||
"location" : "[variables('location')]",
|
||||
"identity" : {
|
||||
"type" : "userAssigned",
|
||||
"userAssignedIdentities" : {
|
||||
"[resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/', variables('identityName'))]" : {}
|
||||
}
|
||||
},
|
||||
"dependsOn" : [
|
||||
"[concat('Microsoft.Network/networkInterfaces/', concat(variables('vmNames')[copyIndex()], '-nic'))]"
|
||||
],
|
||||
|
||||
@@ -65,6 +65,7 @@
|
||||
"nodeSubnetRef" : "[concat(variables('virtualNetworkID'), '/subnets/', variables('nodeSubnetName'))]",
|
||||
"infraLoadBalancerName" : "[parameters('baseName')]",
|
||||
"sshKeyPath" : "/home/capi/.ssh/authorized_keys",
|
||||
"identityName" : "[concat(parameters('baseName'), '-identity')]",
|
||||
"galleryName": "[concat('gallery_', replace(parameters('baseName'), '-', '_'))]",
|
||||
"imageName" : "[concat(parameters('baseName'), if(equals(parameters('hyperVGen'), 'V2'), '-gen2', ''))]",
|
||||
"copy" : [
|
||||
@@ -117,6 +118,12 @@
|
||||
"tags" : {
|
||||
"kubernetes.io-cluster-ffranzupi": "owned"
|
||||
},
|
||||
"identity" : {
|
||||
"type" : "userAssigned",
|
||||
"userAssignedIdentities" : {
|
||||
"[resourceID('Microsoft.ManagedIdentity/userAssignedIdentities/', variables('identityName'))]" : {}
|
||||
}
|
||||
},
|
||||
"dependsOn" : [
|
||||
"[concat('Microsoft.Network/networkInterfaces/', concat(variables('vmNames')[copyIndex()], '-nic'))]"
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user