Skip to content

Commit

Permalink
Merge pull request #5163 from varunbeesu/puppet-enterprise-rhel-win_b…
Browse files Browse the repository at this point in the history
…ranch

Updated to use Managed disks
  • Loading branch information
bmoore-msft committed Sep 7, 2018
2 parents 0b9a04f + 88f69dd commit 76be56a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 76 deletions.
100 changes: 25 additions & 75 deletions puppet-enterprise-rhel-win/azuredeploy.json
Expand Up @@ -74,11 +74,7 @@
"puppetNsgName": "puppet-nsg",
"linuxAgentNsgName": "linux-agent-nsg",
"windowsAgentNsgName": "windows-agent-nsg",
"puppetStorageName": "[concat('puppetstor',uniqueString(resourceGroup().id))]",
"linuxAgentStorageName": "[concat('linstor',uniqueString(resourceGroup().id))]",
"windowsAgentStorageName": "[concat('winstor',uniqueString(resourceGroup().id))]",
"diagStorageAccountName": "[concat('diagstor',uniqueString(resourceGroup().id))]",
"storageAccountType": "Standard_GRS",
"virtualNetworkName": "puppet-vnet",
"linuxSubnetName": "linux-agent-subnet",
"windowsSubnetName": "windows-agent-subnet",
Expand All @@ -100,7 +96,6 @@
"vmLinAgentName": "vm-linux-agent",
"vmWinAgentNicName": "vm-windows-agent-nic-",
"vmLinAgentNicName": "vm-linux-agent-nic-",
"vmStorageAccountContainerName": "vhds",
"scriptClose": "'",
"scriptFileName2": "installpuppetagent.sh",
"scriptStart": "su -c'sh ",
Expand All @@ -122,28 +117,40 @@
{
"type": "Microsoft.Compute/availabilitySets",
"name": "master-avset",
"apiVersion": "2015-06-15",
"apiVersion": "2017-12-01",
"location": "[parameters('location')]",
"comments": "This availability set will consist of puppet master installed virtual machine",
"tags": {
"displayName": "Availability Set Puppet Master",
"quickstartName": "[variables('quickstartTags').name]",
"provider": "[variables('puppetTags').provider]"
},
"properties": {}
"sku": {
"name": "Aligned"
},
"properties": {
"platformFaultDomainCount": 2,
"platformUpdateDomainCount": 5
}
},
{
"type": "Microsoft.Compute/availabilitySets",
"name": "agent-avset",
"apiVersion": "2015-06-15",
"apiVersion":"2017-12-01",
"location": "[parameters('location')]",
"comments": "This availability set will consist of windows virtual machines configured as puppet agents ",
"tags": {
"displayName": "Puppet Agents Availability Set",
"quickstartName": "[variables('quickstartTags').name]",
"provider": "[variables('redHatTags').provider]"
},
"properties": {}
"sku": {
"name": "Aligned"
},
"properties": {
"platformFaultDomainCount": 2,
"platformUpdateDomainCount": 5
}
},
{
"type": "Microsoft.Network/networkSecurityGroups",
Expand Down Expand Up @@ -495,52 +502,7 @@
]
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('puppetStorageName')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"comments": "This storage account is used to store the VM disks of puppet master vm",
"tags": {
"displayName": "Puppet Master Storage Account",
"quickstartName": "[variables('quickstartTags').name]",
"provider": "[variables('puppetTags').provider]"
},
"properties": {
"accountType": "[variables('StorageAccountType')]"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('linuxAgentStorageName')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"comments": "This storage account is used to store the VM disks of RHEL puppet agent vms",
"tags": {
"displayName": "Linux Agent Storage Account",
"quickstartName": "[variables('quickstartTags').name]",
"provider": "[variables('redHatTags').provider]"
},
"properties": {
"accountType": "[variables('storageAccountType')]"
}
},
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('windowsAgentStorageName')]",
"apiVersion": "2015-06-15",
"location": "[parameters('location')]",
"comments": "This storage account is used to store the VM disks of windows puppet agent vms",
"tags": {
"displayName": "Windows Agent Storage Account",
"quickstartName": "[variables('quickstartTags').name]",
"provider": "[variables('redHatTags').provider]"
},
"properties": {
"accountType": "[variables('storageAccountType')]"
}
},
{
{
"type": "Microsoft.Storage/storageAccounts",
"name": "[variables('diagStorageAccountName')]",
"apiVersion": "2015-06-15",
Expand Down Expand Up @@ -862,7 +824,7 @@
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[variables('puppetMasterVmName')]",
"apiVersion": "2015-06-15",
"apiVersion": "2017-03-30",
"location": "[parameters('location')]",
"comments": "This vm will be used as puppet master",
"tags": {
Expand All @@ -871,7 +833,6 @@
"provider": "[variables('puppetTags').provider]"
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('puppetStorageName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('puppetMasterNicName'))]"
],
"plan": {
Expand All @@ -896,14 +857,11 @@
"imageReference": {
"publisher": "Puppet",
"offer": "Puppet-Enterprise",
"sku": "2016-1",
"sku": "2017-2",
"version": "latest"
},
"osDisk": {
"name": "osdisk",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('puppetStorageName')),'2015-06-15').primaryEndpoints.blob,variables('vmStorageAccountContainerName'),'/OSDisk','.vhd')]"
},
"name": "[concat(variables('puppetMasterVmName'),'_OSDisk')]",
"caching": "ReadWrite",
"createOption": "FromImage"
}
Expand All @@ -917,7 +875,7 @@
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"enabled": true,
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('diagStorageAccountName')),'2015-06-15').primaryEndpoints.blob]"
}
}
Expand Down Expand Up @@ -955,7 +913,7 @@
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(variables('vmWinAgentName'),copyIndex(1))]",
"apiVersion": "2015-06-15",
"apiVersion": "2017-03-30",
"location": "[parameters('location')]",
"comments": "These vms will be used as Windows puppet agents",
"tags": {
Expand All @@ -968,7 +926,6 @@
"count": "[parameters('windowsAgentCount')]"
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('windowsAgentStorageName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('vmWinAgentNicName'),copyIndex(1))]"
],
"properties": {
Expand All @@ -992,9 +949,6 @@
},
"osDisk": {
"name": "[concat('vmWinAgent',copyIndex(1),'os-disk')]",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('windowsAgentStorageName')),'2015-06-15').primaryEndpoints.blob,variables('vmStorageAccountContainerName'),'/','vmWinAgent',copyIndex(1),'os-disk','.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
Expand All @@ -1008,7 +962,7 @@
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"enabled": true,
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('diagStorageAccountName')),'2015-06-15').primaryEndpoints.blob]"
}
}
Expand Down Expand Up @@ -1046,7 +1000,7 @@
{
"type": "Microsoft.Compute/virtualMachines",
"name": "[concat(variables('vmLinAgentName'),copyIndex(1))]",
"apiVersion": "2015-06-15",
"apiVersion": "2017-03-30",
"location": "[parameters('location')]",
"comments": "These vms will be used as puppet agents",
"tags": {
Expand All @@ -1059,7 +1013,6 @@
"count": "[parameters('linuxAgentCount')]"
},
"dependsOn": [
"[concat('Microsoft.Storage/storageAccounts/', variables('linuxAgentStorageName'))]",
"[concat('Microsoft.Network/networkInterfaces/', variables('vmLinAgentNicName'),copyIndex(1))]"
],
"properties": {
Expand All @@ -1083,9 +1036,6 @@
},
"osDisk": {
"name": "[concat('vmLinAgent',copyIndex(1),'os-disk')]",
"vhd": {
"uri": "[concat(reference(concat('Microsoft.Storage/storageAccounts/', variables('linuxAgentStorageName')),'2015-06-15').primaryEndpoints.blob,variables('vmStorageAccountContainerName'),'/','vmLinAgent',copyIndex(1),'os-disk','.vhd')]"
},
"caching": "ReadWrite",
"createOption": "FromImage"
}
Expand All @@ -1099,7 +1049,7 @@
},
"diagnosticsProfile": {
"bootDiagnostics": {
"enabled": "true",
"enabled": true,
"storageUri": "[reference(concat('Microsoft.Storage/storageAccounts/', variables('diagStorageAccountName')),'2015-06-15').primaryEndpoints.blob]"
}
}
Expand Down
2 changes: 1 addition & 1 deletion puppet-enterprise-rhel-win/metadata.json
Expand Up @@ -5,7 +5,7 @@
"description": "This quickstart template deploys a Puppet Enterprise Solution on Azure Virtual Machine running Ubuntu 14.04 with pre-configured puppet agents running RHEL 7.2 and Windows Server 2016. Template will build everything starting from Azure Infrastructure components to Puppet Master & multiple Windows and RHEL puppet Agents installation, configuration etc. To start with, this template will deploy one Puppet Master server vm and multiple RHEL and Windows Agents as specified during deployment.",
"summary": "This template deploys a Puppet Enterprise Solution on Azure with multiple RHEL & Windows agents",
"githubUsername": "amalik99",
"dateUpdated": "2017-02-21"
"dateUpdated": "2018-08-30"
}


0 comments on commit 76be56a

Please sign in to comment.