Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Add support for Elastic stack 7.6.0 #328

Merged
merged 4 commits into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,12 @@ where `<name>` refers to the resource group you just created.
correspond the parameters defined in the [Parameters section](#parameters)

```powershell
$branch = "master"
$esVersion = "7.6.0"

$clusterParameters = @{
"_artifactsLocation" = "https://raw.githubusercontent.com/elastic/azure-marketplace/master/src/"
"esVersion" = "7.5.0"
"_artifactsLocation" = "https://raw.githubusercontent.com/elastic/azure-marketplace/$branch/src/"
"esVersion" = $esVersion
"esClusterName" = "elasticsearch"
"loadBalancerType" = "internal"
"vmDataDiskCount" = 1
Expand Down Expand Up @@ -674,16 +677,16 @@ the `_artifactsLocation` parameter of the template to point to a specific tagged

**Targeting a specific template version is recommended for repeatable production deployments.**

For example, to target the [`7.5.0` tag release with PowerShell](https://github.com/elastic/azure-marketplace/tree/7.5.0)
For example, to target the [`7.6.0` tag release with PowerShell](https://github.com/elastic/azure-marketplace/tree/7.6.0)

```powershell
$templateVersion = "7.5.0"
$templateVersion = "7.6.0"
$_artifactsLocation = "https://raw.githubusercontent.com/elastic/azure-marketplace/$templateVersion/src/"

# minimum parameters required to deploy
$clusterParameters = @{
"_artifactsLocation" = $_artifactsLocation
"esVersion" = "7.5.0"
"esVersion" = "7.6.0"
"adminUsername" = "russ"
"adminPassword" = "Password1234"
"securityBootstrapPassword" = "Password1234"
Expand Down
4 changes: 2 additions & 2 deletions build/allowedValues.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"versions": [
"6.3.2",
"6.4.3",
"6.5.4",
"6.6.2",
Expand All @@ -11,7 +10,8 @@
"7.2.1",
"7.3.2",
"7.4.2",
"7.5.0"
"7.5.2",
"7.6.0"
],
"numberOfDataNodes" : 50,
"numberOfClientNodes" : 20,
Expand Down
19 changes: 9 additions & 10 deletions build/tasks/arm-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,14 +410,13 @@ var sanityCheckDeployment = (test, stdout, cb) => {
}

var getApplicationGatewayPublicIp = (() => {
var applicationGatewayPublicIp = "";

var applicationGatewayPublicIps = {};
return (test, cb) => {
if (applicationGatewayPublicIp)
cb(applicationGatewayPublicIp);
else {
var t = armTests[test];
var rg = t.resourceGroup;
var t = armTests[test];
var rg = t.resourceGroup;
if (applicationGatewayPublicIps.hasOwnProperty(rg))
cb(applicationGatewayPublicIps[rg]);
else {
var operationList = [ 'network', 'public-ip', 'show',
'--name', 'app-gateway-ip',
'--resource-group', rg,
Expand All @@ -429,12 +428,12 @@ var getApplicationGatewayPublicIp = (() => {
log(test, `operationPublicIpShowResult: ${stdout || stderr}`);
if (error || stderr) {
log(`getting public ip for application gateway in ${t.name} resulted in error: ${JSON.stringify(error, null, 2)}`);
cb(applicationGatewayPublicIp);
cb(applicationGatewayPublicIps[rg]);
}
else {
var result = JSON.parse(stdout);
applicationGatewayPublicIp = `https://${result.dnsSettings.fqdn}:9200`;
cb(applicationGatewayPublicIp);
applicationGatewayPublicIps[rg] = `https://${result.dnsSettings.fqdn}:9200`;
cb(applicationGatewayPublicIps[rg]);
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions docs/azure-arm-template.asciidoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
:marketplace: https://azuremarketplace.microsoft.com/en-au/marketplace/apps/elastic.elasticsearch
:portal: https://portal.azure.com
:github: https://github.com/elastic/azure-marketplace
:current: 7.5
:version: 7.5.0
:current: 7.6
:version: 7.6.0
:register: https://register.elastic.co
:elasticguide: https://www.elastic.co/guide/en/elasticsearch
:elasticdocs: {elasticguide}/reference/{current}
Expand Down
2 changes: 1 addition & 1 deletion docs/trial-license-warning.asciidoc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
:current: 7.5
:current: 7.6
:register: https://register.elastic.co
:elasticdocs: https://www.elastic.co/guide/en/elasticsearch/reference/{current}
:licenseexpiration: {stackdocs}/license-expiration.html
Expand Down
2 changes: 1 addition & 1 deletion parameters/password.parameters.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_artifactsLocation":{"value":"https://raw.githubusercontent.com/elastic/azure-marketplace/master/src/"},
"_artifactsLocationSasToken":{"value":""},
"esVersion":{"value":"7.5.0"},
"esVersion":{"value":"7.6.0"},
"esClusterName":{"value":"my-azure-cluster"},
"loadBalancerType":{"value":"internal"},
"loadBalancerInternalSku":{"value":"Basic"},
Expand Down
2 changes: 1 addition & 1 deletion parameters/ssh.parameters.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_artifactsLocation":{"value":"https://raw.githubusercontent.com/elastic/azure-marketplace/master/src/"},
"_artifactsLocationSasToken":{"value":""},
"esVersion":{"value":"7.5.0"},
"esVersion":{"value":"7.6.0"},
"esClusterName":{"value":"my-azure-cluster"},
"loadBalancerType":{"value":"internal"},
"loadBalancerInternalSku":{"value":"Basic"},
Expand Down
14 changes: 7 additions & 7 deletions src/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@
"name": "esVersion",
"type": "Microsoft.Common.DropDown",
"label": "Elasticsearch version",
"defaultValue": "v7.5.0",
"defaultValue": "v7.6.0",
"toolTip": "Choose a version of Elasticsearch.",
"constraints": {
"allowedValues": [
{
"label": "v6.3.2",
"value": "6.3.2"
},
{
"label": "v6.4.3",
"value": "6.4.3"
Expand Down Expand Up @@ -103,8 +99,12 @@
"value": "7.4.2"
},
{
"label": "v7.5.0",
"value": "7.5.0"
"label": "v7.5.2",
"value": "7.5.2"
},
{
"label": "v7.6.0",
"value": "7.6.0"
}
]
}
Expand Down
6 changes: 3 additions & 3 deletions src/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@
},
"esVersion": {
"type": "string",
"defaultValue": "7.5.0",
"defaultValue": "7.6.0",
"allowedValues": [
"6.3.2",
"6.4.3",
"6.5.4",
"6.6.2",
Expand All @@ -41,7 +40,8 @@
"7.2.1",
"7.3.2",
"7.4.2",
"7.5.0"
"7.5.2",
"7.6.0"
],
"metadata": {
"description": "Elastic Stack version to install"
Expand Down
2 changes: 1 addition & 1 deletion src/partials/vm.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
"nsgIpConfig": "[variables('nsgIpConfigs')[if(empty(parameters('vm').nsg), 0, if(parameters('vm').standardInternalLoadBalancer, 2, 1))]]",
"nicProperties": {
"primary": true,
"enableAcceleratedNetworking": "[equals(parameters('vm').acceleratedNetworking, 'Yes')]",
"enableAcceleratedNetworking": "[equals(parameters('vm').acceleratedNetworking, 'Yes')]",
"ipConfigurations": [
{
"name": "ipconfig1",
Expand Down