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

Commit

Permalink
Add Elastic Stack 7.11 (#381)
Browse files Browse the repository at this point in the history
This commit updates the versions of the Elastic Stack that the template deploys.

- Add 7.11.1
- Update 7.10 version to 7.10.2
- Remove EOL versions, 7.2.1 and 7.3.2

- Don't use --allow root for 7.11

  Relates: elastic/kibana#76465
  • Loading branch information
russcam authored Feb 24, 2021
1 parent e405aa8 commit 12a7e7a
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 26 deletions.
5 changes: 2 additions & 3 deletions build/allowedValues.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"versions": [
"6.8.14",
"7.2.1",
"7.3.2",
"7.4.2",
"7.5.2",
"7.6.2",
"7.7.1",
"7.8.1",
"7.9.3",
"7.10.0"
"7.10.2",
"7.11.1"
],
"numberOfDataNodes" : 50,
"numberOfClientNodes" : 20,
Expand Down
2 changes: 1 addition & 1 deletion build/arm-tests/3d-3m-3c-int-jp.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vmDataDiskCount":{"value":40},
"vmDataDiskSize":{"value":"32GiB"},
"storageAccountType":{"value":"Default"},
"dataNodesAreMasterEligible":{"value":"Yes"},
"dataNodesAreMasterEligible":{"value":"No"},
"vmSizeMasterNodes":{"value":"Standard_DS2_v2"},
"vmClientNodeCount":{"value":3},
"vmSizeClientNodes":{"value":"Standard_DS1_v2"},
Expand Down
18 changes: 7 additions & 11 deletions src/createUiDefinition.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,14 @@
"name": "esVersion",
"type": "Microsoft.Common.DropDown",
"label": "Elasticsearch version",
"defaultValue": "v7.10.0",
"defaultValue": "v7.11.1",
"toolTip": "Choose a version of Elasticsearch.",
"constraints": {
"allowedValues": [
{
"label": "v6.8.14",
"value": "6.8.14"
},
{
"label": "v7.2.1",
"value": "7.2.1"
},
{
"label": "v7.3.2",
"value": "7.3.2"
},
{
"label": "v7.4.2",
"value": "7.4.2"
Expand All @@ -95,8 +87,12 @@
"value": "7.9.3"
},
{
"label": "v7.10.0",
"value": "7.10.0"
"label": "v7.10.2",
"value": "7.10.2"
},
{
"label": "v7.11.1",
"value": "7.11.1"
}
]
}
Expand Down
7 changes: 3 additions & 4 deletions src/mainTemplate.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,17 @@
},
"esVersion": {
"type": "string",
"defaultValue": "7.10.0",
"defaultValue": "7.11.1",
"allowedValues": [
"6.8.14",
"7.2.1",
"7.3.2",
"7.4.2",
"7.5.2",
"7.6.2",
"7.7.1",
"7.8.1",
"7.9.3",
"7.10.0"
"7.10.2",
"7.11.1"
],
"metadata": {
"description": "Elastic Stack version to install"
Expand Down
19 changes: 12 additions & 7 deletions src/scripts/kibana-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ random_password()

keystore_cmd()
{
# keystore is created in /etc/kibana/kibana.keystore in 7.9.0+
# but need to create with root due to permissions
if dpkg --compare-versions "$KIBANA_VERSION" "ge" "7.9.0"; then
/usr/share/kibana/bin/kibana-keystore "$@" --allow-root
else
if [[ $(dpkg --compare-versions "$KIBANA_VERSION" "ge" "7.11.0"; echo $?) -eq 0 || $(dpkg --compare-versions "$KIBANA_VERSION" "lt" "7.9.0"; echo $?) -eq 0 ]]; then
sudo -u kibana /usr/share/kibana/bin/kibana-keystore "$@"
else
# keystore is created in /etc/kibana/kibana.keystore in 7.9.x and 7.10.x
# but need to create with root due to permissions
/usr/share/kibana/bin/kibana-keystore "$@" --allow-root
fi
}

Expand All @@ -178,8 +178,13 @@ create_keystore_if_not_exists()
if dpkg --compare-versions "$KIBANA_VERSION" "ge" "7.9.0"; then
KEYSTORE_FILE=/etc/kibana/kibana.keystore
fi

[[ -f $KEYSTORE_FILE ]] || (keystore_cmd create)

if [[ -f $KEYSTORE_FILE ]]; then
log "[create_keystore_if_not_exists] kibana.keystore exists at $KEYSTORE_FILE"
else
log "[create_keystore_if_not_exists] create kibana.keystore"
keystore_cmd create
fi
}

install_kibana()
Expand Down

0 comments on commit 12a7e7a

Please sign in to comment.