forked from Azure/azure-quickstart-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#6390 from maddyloo/master
Add RHEL & CentOS support
- Loading branch information
Showing
6 changed files
with
76 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"$schema": "https://aka.ms/azure-quickstart-templates-metadata-schema#", | ||
"itemDisplayName": "Tableau Server Linux Single Node", | ||
"description": "This template deploys a new instance of Tableau Server on an Ubuntu machine on Azure along with all required infrastructure elements. Tableau is an industry-leading business intelligence platform. Tableau Server allows users to discover and share data-driven insights throughout their organization in a secure, governable environment. For more information please visit our webpage: 'https://www.tableau.com/.'", | ||
"description": "This template deploys a new instance of Tableau Server on an Ubuntu, RHEL or CentOS machine on Azure along with all required infrastructure elements. Tableau is an industry-leading business intelligence platform. Tableau Server allows users to discover and share data-driven insights throughout their organization in a secure, governable environment. For more information please visit our webpage: 'https://www.tableau.com/.'", | ||
"summary": "This template deploys a new instance of Tableau Server on a single Azure compute node along with all required infrastructure elements. This template supports deployment on Ubuntu based machines.", | ||
"githubUsername": "maddyloo", | ||
"dateUpdated": "2019-04-01", | ||
"dateUpdated": "2019-07-30", | ||
"type": "QuickStart" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,13 @@ | |
# sh ./config-linux.sh -u <username> -p <password> -h admin -i admin -j 98107 -k usa -l seattle -m data -n tech -o yes -q pm -r 8888888 -s tableau -t wa -v dev -w jamie -x [email protected] [-y <license key>] | ||
# customized to reflect machine admin username and admin password | ||
|
||
while getopts u:p:g:h:i:j:k:l:m:n:o:q:r:s:t:v:w:x:y: option | ||
while getopts u:p:f:g:h:i:j:k:l:m:n:o:q:r:s:t:v:w:x:y: option | ||
do | ||
case "${option}" | ||
in | ||
u) USER=${OPTARG};; | ||
p) PASSWORD=${OPTARG};; | ||
f) OS=${OPTARG};; | ||
g) INSTALL_SCRIPT_URL=${OPTARG};; | ||
h) TS_USER=${OPTARG};; | ||
i) TS_PASS=${OPTARG};; | ||
|
@@ -33,7 +34,8 @@ done | |
cd /tmp/ | ||
|
||
# create secrets | ||
echo "tsm_admin_user=\"$USER\"\ntsm_admin_pass=\"$PASSWORD\"\ntableau_server_admin_user=\"$TS_USER\"\ntableau_server_admin_pass=\"$TS_PASS\"" >> secrets | ||
printf "tsm_admin_user=\"$USER\"\ntsm_admin_pass=\"$PASSWORD\"\ntableau_server_admin_user=\"$TS_USER\"\ntableau_server_admin_pass=\"$TS_PASS\"" >> secrets | ||
# echo "tsm_admin_user=\"$USER\"\ntsm_admin_pass=\"$PASSWORD\"\ntableau_server_admin_user=\"$TS_USER\"\ntableau_server_admin_pass=\"$TS_PASS\"" >> secrets | ||
|
||
# create registration file | ||
echo "{ | ||
|
@@ -45,7 +47,7 @@ echo "{ | |
\"eula\" : \"$EULA\", | ||
\"title\" : \"$TITLE\", | ||
\"phone\" : \"$PHONE\", | ||
\"company\" : \"$COMPANY\", | ||
\"company\" : \"$COMPANY-azure-arm-linux\", | ||
\"state\" : \"$STATE\", | ||
\"department\" : \"$DEPARMENT\", | ||
\"first_name\" : \"$FIRST_NAME\", | ||
|
@@ -63,9 +65,14 @@ echo '{ | |
}' >> config.json | ||
wait | ||
|
||
# download tableau server .deb file | ||
# download tableau server .deb or.rpm file | ||
# retry on fail | ||
wget --tries=3 --output-document=tableau-installer.deb https://downloads.tableau.com/esdalt/2019.2.1/tableau-server-2019-2-1_amd64.deb | ||
if [ "$OS" == "Ubuntu 16.04 LTS" ] | ||
then | ||
wget --tries=3 --output-document=tableau-installer.deb https://downloads.tableau.com/esdalt/2019.2.1/tableau-server-2019-2-1_amd64.deb | ||
else | ||
wget --tries=3 --output-document=tableau-installer.rpm https://downloads.tableau.com/esdalt/2019.2.1/tableau-server-2019-2-1.x86_64.rpm | ||
fi | ||
|
||
if [ $? -ne 0 ] | ||
then | ||
|
@@ -87,16 +94,38 @@ wait | |
# run automated installer (install trial if no license key) | ||
if [ -z "$LICENSE_KEY" ] | ||
then | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" --accepteula tableau-installer.deb --force | ||
if [ "$OS" == "Ubuntu 16.04 LTS" ] | ||
then | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" --accepteula tableau-installer.deb --force | ||
else | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" --accepteula tableau-installer.rpm --force | ||
fi | ||
else | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" -k "$LICENSE_KEY" --accepteula tableau-installer.deb --force | ||
if [ "$OS" == "Ubuntu 16.04 LTS" ] | ||
then | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" -k "$LICENSE_KEY" --accepteula tableau-installer.deb --force | ||
else | ||
sudo ./automated-installer.sh -s secrets -f config.json -r registration.json -a "$USER" -k "$LICENSE_KEY" --accepteula tableau-installer.rpm --force | ||
fi | ||
fi | ||
|
||
wait | ||
|
||
# if on RHEL, open firewall | ||
if [ "$OS" == "RHEL 7.6" ] || [ "$OS" == "CentOS 7.5" ] | ||
then | ||
firewall-cmd --zone=public --add-port=80/tcp --permanent | ||
firewall-cmd --reload | ||
fi | ||
|
||
# remove all install files | ||
rm registration.json | ||
rm secrets | ||
rm tableau-installer.deb | ||
if [ "$OS" == "RHEL 7.6" ] || [ "$OS" == "CentOS 7.5" ] | ||
then | ||
rm tableau-installer.rpm | ||
else | ||
rm tableau-installer.deb | ||
fi | ||
rm automated-installer.sh | ||
rm config.json |