Skip to content

Commit

Permalink
CustomScript rollout - stage Azure#2
Browse files Browse the repository at this point in the history
See Azure#2340 for more context.

Rolling out CustomScript to more templates. Please do not mind the
tabs vs spaces for now. Once the whole rollout completes, I will
submit a PR for json indentation.
  • Loading branch information
ahmetb committed Aug 22, 2016
1 parent ee6efb1 commit 715dad2
Show file tree
Hide file tree
Showing 35 changed files with 167 additions and 146 deletions.
9 changes: 5 additions & 4 deletions 301-dns-forwarder/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,14 @@
"location": "[variables('location')]",
"dependsOn": ["[concat('Microsoft.Compute/virtualMachines/', parameters('vmName'))]"],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.3",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": ["[variables('scriptUrl')]"],
"commandToExecute": "[concat('sh forwarderSetup.sh',' ',parameters('forwardIP'),' ', variables('vnetAddressPrefix'))]"
}
}
}]
}
}
8 changes: 4 additions & 4 deletions 301-drupal8-vmss-glusterfs-mysql/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -547,10 +547,10 @@
{
"name": "drupalextension",
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": false,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris":
[
Expand Down
7 changes: 4 additions & 3 deletions ansible-advancedlinux/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -437,9 +437,10 @@
"VMsLoop"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('customScriptSSHRootUrl')]",
Expand Down
10 changes: 5 additions & 5 deletions consul-on-ubuntu/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -308,18 +308,18 @@
},
"type": "Microsoft.Compute/virtualMachines/extensions",
"properties": {
"autoUpgradeMinorVersion": true,
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('customScriptFilePath')]"
]
},
"protectedSettings": {
"commandToExecute": "[concat(variables('customScriptCommandToExecute'),' ', parameters('existingAtlasInfraName'), ' ', parameters('existingAtlasToken'))]"
},
"type": "CustomScriptForLinux",
"publisher": "Microsoft.OSTCExtensions"
}
}
}
]
Expand Down
14 changes: 8 additions & 6 deletions couchbase-ansible/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -490,9 +490,10 @@
"VMsLoop"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('customScriptSSHRootUrl')]",
Expand Down Expand Up @@ -606,9 +607,10 @@
"VMExtensionsLoop"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('customScriptAnsibleUrl')]",
Expand Down
7 changes: 4 additions & 3 deletions couchbase-on-ubuntu/nested/cluster-nodes-A6.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
7 changes: 4 additions & 3 deletions couchbase-on-ubuntu/nested/cluster-nodes-disabledA2.json
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
7 changes: 4 additions & 3 deletions couchbase-on-ubuntu/nested/cluster-nodes-disabledD14.json
Original file line number Diff line number Diff line change
Expand Up @@ -459,9 +459,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('machineSettings').machineNamePrefix, parameters('nodeId'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[parameters('vmScripts').scriptsToDownload]",
"commandToExecute": "[parameters('commandToExecute')]"
Expand Down
10 changes: 5 additions & 5 deletions dnx-on-ubuntu/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@
"[concat('Microsoft.Compute/virtualMachines/', parameters('vmName') )]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": true,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/dnx-on-ubuntu/scripts/post_deployment.sh"
Expand Down Expand Up @@ -218,4 +218,4 @@
"dependsOn": []
}
]
}
}
9 changes: 5 additions & 4 deletions docker-neo4j/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
"ubuntuOSVersion": "15.10",
"OSDiskName": "osDisk",
"nsgName": "[concat(parameters('vmName'),'NeoNSG')]",
"nicName": "[concat(parameters('vmName'),'NeoNIC')]", "dockerExtensionName": "DockerExtension",
"nicName": "[concat(parameters('vmName'),'NeoNIC')]",
"dockerExtensionName": "DockerExtension",
"azureVMUtilsName": "vmCustomizationExt",
"azureVMUtilsScriptUrl": "https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/docker-neo4j/extras/setup_data_disk.sh",
"addressPrefix": "10.0.0.0/16",
Expand Down Expand Up @@ -289,9 +290,9 @@
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
Expand Down
8 changes: 4 additions & 4 deletions dokku-vm/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -220,10 +220,10 @@
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.5",
"autoUpgradeMinorVersion": true,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[concat(variables('githubPath'),'deploy_dokku.sh')]"
Expand Down
7 changes: 4 additions & 3 deletions drone-ubuntu-vm/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,10 @@
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.2",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/drone-ubuntu-vm/install_drone.sh"
Expand Down
10 changes: 5 additions & 5 deletions emercoin-ubuntu/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,10 @@
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"autoUpgradeMinorVersion": true,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/emercoin-ubuntu/configure-emercoin.sh"
Expand All @@ -275,4 +275,4 @@
}
}
]
}
}
14 changes: 8 additions & 6 deletions hazelcast-vm-cluster/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,10 @@
"[concat('Microsoft.Compute/virtualMachines/', variables('vmName'), '0')]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[variables('bootstrapFiles')]",
"commandToExecute": "[concat('sh bootstrap_hazelcast ', parameters('minHeapSizeInGB'), ' ', parameters('maxHeapSizeInGB'), ' ', parameters('clusterUserName'), ' ', parameters('clusterPassword'), ' ', subscription().subscriptionId, ' ', parameters('aadClientId'), ' ', parameters('aadClientSecret'), ' ', parameters('aadTenantId'), ' ', resourceGroup().name, ' ', parameters('clusterName'))]"
Expand All @@ -377,9 +378,10 @@
"createVms"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.4",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": "[variables('bootstrapFiles')]",
"commandToExecute": "[concat('sh bootstrap_hazelcast ', parameters('minHeapSizeInGB'), ' ', parameters('maxHeapSizeInGB'), ' ', parameters('clusterUserName'), ' ', parameters('clusterPassword'), ' ', subscription().subscriptionId, ' ', parameters('aadClientId'), ' ', parameters('aadClientSecret'), ' ', parameters('aadTenantId'), ' ', resourceGroup().name, ' ', parameters('clusterName'))]"
Expand Down
10 changes: 5 additions & 5 deletions intel-lustre-client-server/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,10 @@
"[concat('Microsoft.Compute/virtualMachines/', concat(parameters('vmNamePrefix'), 'mgs'))]"
],
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.5",
"autoUpgradeMinorVersion":true,
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('scriptUrlLustre')]"
Expand Down Expand Up @@ -1223,4 +1223,4 @@
}
}
}
}
}
9 changes: 5 additions & 4 deletions intel-lustre-clients-on-centos/azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,10 @@
"count": "[parameters('clientCount')]"
},
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.5",
"publisher": "Microsoft.Azure.Extensions",
"type": "CustomScript",
"typeHandlerVersion": "2.0",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"[variables('scriptUrlLustreClient')]"
Expand All @@ -413,4 +414,4 @@
}
}
}
}
}
Loading

0 comments on commit 715dad2

Please sign in to comment.