Skip to content

Commit 043b9ab

Browse files
AD setup script RC1 - Updates
1 parent ed39cf4 commit 043b9ab

1 file changed

Lines changed: 5 additions & 24 deletions

File tree

  • samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad

samples/features/sql-big-data-cluster/deployment/kubeadm/ubuntu-single-node-vm-ad/setup-bdc-ad.sh

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ if [ "$EUID" -ne 0 ]
66
exit
77
fi
88

9+
STARTUP_PATH=$(pwd)
10+
911
# This is a script to create single-node Kubernetes cluster and deploy BDC on it.
1012
#
1113
export BDCDEPLOY_DIR=bdcdeploy
@@ -39,26 +41,6 @@ done
3941
export DOMAIN_SERVICE_ACCOUNT_PASSWORD=$ds_password
4042
echo ""
4143

42-
# Get the security patch filepath.
43-
#
44-
read -p "Enter the Absolute FilePath for Security Patch Json: " security_patch_json_path
45-
while [ ! -s $security_patch_json_path ];do
46-
echo "Security Patch Json File does not exist."
47-
read -p "Enter the Absolute FilePath for Security Patch Json: " security_patch_json_path
48-
done
49-
echo ""
50-
export SECURITY_PATCH_JSON_PATH=$security_patch_json_path
51-
52-
# Get the endpoint patch filepath.
53-
#
54-
read -p "Enter the Absolute FilePath for Endpoint Patch Json: " endpoint_patch_json_path
55-
while [ ! -s $endpoint_patch_json_path ];do
56-
echo "Endpoint Patch Json File does not exist."
57-
read -p "Enter the Absolute FilePath for Endpoint Patch Json: " endpoint_patch_json_path
58-
done
59-
export ENDPOINT_PATCH_JSON_PATH=$endpoint_patch_json_path
60-
echo
61-
6244
# Name of virtualenv variable used.
6345
#
6446
export VIRTUALENV_NAME="bdcvenv"
@@ -173,7 +155,7 @@ source $VIRTUALENV_NAME/bin/activate
173155

174156
# Install azdata cli.
175157
#
176-
pip3 install -r $REQUIREMENTS_LINK --trusted-host helsinki.redmond.corp.microsoft.com
158+
pip3 install -r $REQUIREMENTS_LINK
177159
echo "Packages installed."
178160

179161
# Load all pre-requisites for Kubernetes.
@@ -358,9 +340,8 @@ azdata bdc config replace -c kubeadm-custom/control.json -j ".spec.docker.imageT
358340
azdata bdc config replace -c kubeadm-custom/bdc.json -j "$.spec.resources.data-0.spec.replicas=1"
359341
azdata bdc config replace -c kubeadm-custom/control.json -j "spec.storage.data.className=$STORAGE_CLASS"
360342
azdata bdc config replace -c kubeadm-custom/control.json -j "spec.storage.logs.className=$STORAGE_CLASS"
361-
362-
azdata bdc config patch -c kubeadm-custom/control.json -p $SECURITY_PATCH_JSON_PATH
363-
azdata bdc config patch -c kubeadm-custom/bdc.json -p $ENDPOINT_PATCH_JSON_PATH
343+
azdata bdc config patch -c kubeadm-custom/control.json -p $STARTUP_PATH/security-patch.json
344+
azdata bdc config patch -c kubeadm-custom/cluster.json -p $STARTUP_PATH/endpoint-patch.json
364345

365346
azdata bdc create -c kubeadm-custom --accept-eula $ACCEPT_EULA
366347

0 commit comments

Comments
 (0)