Fix JSON files linter issues in deployment 08/102408/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 26 Feb 2020 14:14:25 +0000 (15:14 +0100)
committerMorgan Richomme <morgan.richomme@orange.com>
Mon, 2 Mar 2020 14:20:42 +0000 (14:20 +0000)
This is needed prior to adding job for JSON
files linting in CI.

Change-Id: I122783267f75b385f9f2ceee6381eb7331aadaf5
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Issue-ID: INT-1451

deployment/Azure_ARM_Template/arm_cluster_deploy_beijing.json
deployment/Azure_ARM_Template/arm_cluster_deploy_parameters.json

index ed4dc10..cc5885c 100644 (file)
@@ -6,7 +6,10 @@
       "type": "string",
       "defaultValue": "16.04.0-LTS",
       "allowedValues": [
-        "12.04.5-LTS","14.04.5-LTS","15.10","16.04.0-LTS"
+        "12.04.5-LTS",
+        "14.04.5-LTS",
+        "15.10",
+        "16.04.0-LTS"
       ],
       "metadata": {
         "description": "The OS"
@@ -23,7 +26,7 @@
     },
     "privateIPAddress": {
       "type": "string",
-         "defaultValue": "10.0.0.2",
+      "defaultValue": "10.0.0.2",
       "metadata": {
         "description": "Static Private IP will be assigned to the machine"
       }
@@ -47,7 +50,7 @@
         "Standard_E8_v3",
         "Standard_E2_v3",
         "Standard_D1",
-           "Standard_D16s_v3",
+        "Standard_D16s_v3",
         "Standard_D4_v2",
         "Standard_D32s_v3",
         "Standard_E16_v3",
         "description": "Unique DNS label to assign DNS name"
       }
     }
-
   },
   "variables": {
     "dnsLabelPrefix": "[concat('dns-',uniquestring(resourceGroup().id))]",
-    "customData": [ "userdata.txt" ], 
+    "customData": [
+      "userdata.txt"
+    ],
     "vmName": "[concat('k8s-host-', substring(uniquestring(resourceGroup().id),0,4))]",
     "adminUsername": "[concat('ubuntu')]",
     "adminPassword": "Qwertyuiop@@1",
@@ -84,7 +88,7 @@
     "subnetPrefix": "10.0.0.0/24",
     "storageAccountType": "Standard_LRS",
     "publicIPAddressType": "Dynamic",
-         "publicIPAddressName": "nicLoop100",
+    "publicIPAddressName": "nicLoop100",
     "virtualNetworkName": "[concat('VNET-',variables('vmName'))]",
     "subnetRef": "[resourceId('Microsoft.Network/virtualNetworks/subnets/', variables('virtualNetworkName'), variables('subnetName'))]",
     "networkSecurityGroupName": "[concat(variables('vmName'), '_obrien_local_nsg')]",
       },
       "properties": {
         "securityRules": [
-         {
+          {
             "name": "SSHAllowAny",
             "properties": {
               "description": "SSHAllowAny",
               "direction": "Inbound"
             }
           },
-
           {
             "name": "port_10249-10255_172",
             "properties": {
       "location": "[resourceGroup().location]",
       "copy": {
         "name": "nicLoop",
-        "count": "[parameters('numberOfVms')]" 
+        "count": "[parameters('numberOfVms')]"
       },
       "properties": {
         "publicIPAllocationMethod": "Dynamic",
         }
       }
     },
-       {
-    "apiVersion": "2015-06-15",
-    "type": "Microsoft.Compute/virtualMachines/extensions",
-    "name": "[concat(variables('vmName'), '0','/onap')]",
-    "location": "[resourceGroup().location]",
-    "dependsOn": ["virtualMachineLoop"],
-    "properties": {
+    {
+      "apiVersion": "2015-06-15",
+      "type": "Microsoft.Compute/virtualMachines/extensions",
+      "name": "[concat(variables('vmName'), '0','/onap')]",
+      "location": "[resourceGroup().location]",
+      "dependsOn": [
+        "virtualMachineLoop"
+      ],
+      "properties": {
         "publisher": "Microsoft.Azure.Extensions",
         "type": "CustomScript",
         "typeHandlerVersion": "2.0",
         "autoUpgradeMinorVersion": true,
         "settings": {
-            "fileUris": [ "https://git.onap.org/integration/plain/deployment/Azure_ARM_Template/scripts/azure-rancher-server.sh" ],
-            "commandToExecute": "[concat('./' , parameters('masterScriptName'),' ',reference(variables('publicIPAddressName')).dnsSettings.fqdn,' ',parameters('privateIPAddress'),' ',parameters('numberOfVms'))]"
-           }
+          "fileUris": [
+            "https://git.onap.org/integration/plain/deployment/Azure_ARM_Template/scripts/azure-rancher-server.sh"
+          ],
+          "commandToExecute": "[concat('./' , parameters('masterScriptName'),' ',reference(variables('publicIPAddressName')).dnsSettings.fqdn,' ',parameters('privateIPAddress'),' ',parameters('numberOfVms'))]"
         }
-     },
-       {
-    "apiVersion": "2015-06-15",
-    "type": "Microsoft.Compute/virtualMachines/extensions",
-    "name": "[concat(variables('vmName'), copyindex(1),'/onap')]",
-       "copy": {
+      }
+    },
+    {
+      "apiVersion": "2015-06-15",
+      "type": "Microsoft.Compute/virtualMachines/extensions",
+      "name": "[concat(variables('vmName'), copyindex(1),'/onap')]",
+      "copy": {
         "name": "virtualMachineExtnLoop",
-        "count": "[sub(parameters('numberOfVms'),1)]" 
+        "count": "[sub(parameters('numberOfVms'),1)]"
       },
-    "location": "[resourceGroup().location]",
-    "dependsOn": [
-      "virtualMachineLoop"
-    ],
-    "properties": {
+      "location": "[resourceGroup().location]",
+      "dependsOn": [
+        "virtualMachineLoop"
+      ],
+      "properties": {
         "publisher": "Microsoft.Azure.Extensions",
         "type": "CustomScript",
         "typeHandlerVersion": "2.0",
         "autoUpgradeMinorVersion": true,
         "settings": {
-            "fileUris": [ "https://git.onap.org/integration/plain/deployment/Azure_ARM_Template/scripts/azure-k8s-node.sh" ],
-            "commandToExecute": "[concat('./' , parameters('nodeScriptName'),' ',concat(parameters('privateIPAddress'),'0'))]"
-           }
+          "fileUris": [
+            "https://git.onap.org/integration/plain/deployment/Azure_ARM_Template/scripts/azure-k8s-node.sh"
+          ],
+          "commandToExecute": "[concat('./' , parameters('nodeScriptName'),' ',concat(parameters('privateIPAddress'),'0'))]"
         }
-     }
+      }
+    }
   ]
 }
index 081ef7f..a823bb6 100644 (file)
@@ -2,10 +2,20 @@
   "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
   "contentVersion": "1.0.0.0",
   "parameters": {
-      "numberOfVms": { "value": 12 },
-      "vmSize": { "value": "Standard_D4_v2" },
-      "masterScriptName": { "value": "azure-rancher-server.sh" },
-      "nodeScriptName": { "value": "azure-k8s-node.sh" },
-      "dnslabel": { "value": "ranchercluster" }
+    "numberOfVms": {
+      "value": 12
+    },
+    "vmSize": {
+      "value": "Standard_D4_v2"
+    },
+    "masterScriptName": {
+      "value": "azure-rancher-server.sh"
+    },
+    "nodeScriptName": {
+      "value": "azure-k8s-node.sh"
+    },
+    "dnslabel": {
+      "value": "ranchercluster"
+    }
   }
 }