|
1 | 1 | {
|
2 | 2 | "AWSTemplateFormatVersion" : "2010-09-09",
|
3 | 3 |
|
4 |
| - "Description" : "Tableau Server cluster with three nodes running on Windows, available via Amazon-based hostname", |
| 4 | + "Description" : "CloudFormation Template for TSM-based 3-node Tableau Server cluster on Windows", |
5 | 5 |
|
6 | 6 | "Parameters" : {
|
7 | 7 | "KeyName" : {
|
|
18 | 18 | "Type" : "String",
|
19 | 19 | "MinLength" : "9",
|
20 | 20 | "MaxLength" : "18",
|
21 |
| - "Default": "69.25.143.0/24", |
22 | 21 | "AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
|
23 | 22 | "ConstraintDescription": "Must be a valid IP CIDR range of the form x.x.x.x/x."
|
24 | 23 | },
|
25 |
| - "EC2CreationUser" : { |
26 |
| - "Description" : "Tableau-specific tag used to identify who created this instance; name or identifier of person", |
27 |
| - "Type" : "String", |
28 |
| - "MinLength" : "1" |
29 |
| - }, |
30 |
| - "EC2Keepalive" : { |
31 |
| - "Description" : "Tableau-specific tag used to determine max life length of instance; use MM/DD/YYYY format", |
32 |
| - "Type" : "String", |
33 |
| - "MinLength" : "1" |
34 |
| - }, |
35 | 24 | "Username" : {
|
36 | 25 | "Description" : "Tableau Services Manager (TSM) administrator username (cannot be Administrator)",
|
37 | 26 | "Type": "String",
|
|
118 | 107 | "ParameterGroups" : [
|
119 | 108 | {
|
120 | 109 | "Label" : { "default" : "AWS Environment" },
|
121 |
| - "Parameters" : ["KeyName","ResourceAvailabilityZone","SourceCidr", |
122 |
| - "EC2CreationUser", "EC2Keepalive"] |
| 110 | + "Parameters" : ["KeyName","ResourceAvailabilityZone","SourceCidr"] |
123 | 111 | },
|
124 | 112 | {
|
125 | 113 | "Label" : { "default" : "Configure Initial Tableau Admin User" },
|
|
146 | 134 | "SourceCidr": {
|
147 | 135 | "default": "Source CIDR for access"
|
148 | 136 | },
|
149 |
| - "EC2CreationUser": { |
150 |
| - "default": "(Tableau Specific) Tableau User" |
151 |
| - }, |
152 |
| - "EC2Keepalive": { |
153 |
| - "default": "(Tableau Specific) Resources Keepalive" |
154 |
| - }, |
155 | 137 | "Username" : {
|
156 | 138 | "default" : "Tableau Services Manager (TSM) administrator username"
|
157 | 139 | },
|
|
257 | 239 | "DefaultConfiguration" : {
|
258 | 240 | "InstallationConfig" : {
|
259 | 241 | "InstallationBucket" : "tableau-quickstart",
|
260 |
| - "InstallationExecutable" : "Tableau-Server-2018.2-Beta1-x64.exe", |
261 |
| - "InstallationWorkerExecutable" : "Tableau-Server-2018.2-Beta1-x64.exe" |
| 242 | + "InstallationExecutable" : "Tableau-Server-2018.2-Beta1-x64.exe" |
262 | 243 | },
|
263 | 244 | "MachineConfiguration" : {
|
264 | 245 | "BastionInstanceType" : "t2.micro",
|
|
481 | 462 | "Tags": [
|
482 | 463 | {
|
483 | 464 | "Key" : "Name",
|
484 |
| - "Value" : {"Fn::Sub" : "${EC2CreationUser}-cfn-lb"} |
| 465 | + "Value" : {"Fn::Sub" : "${AWS::StackName}-cfn-lb"} |
485 | 466 | }
|
486 | 467 | ]
|
487 | 468 | }
|
|
543 | 524 | "Tags": [
|
544 | 525 | {
|
545 | 526 | "Key" : "Name",
|
546 |
| - "Value" : {"Fn::Sub" : "${EC2CreationUser}-bastion-host"} |
547 |
| - }, |
548 |
| - { |
549 |
| - "Key" : "keepalive", |
550 |
| - "Value" : { "Ref" : "EC2Keepalive" } |
551 |
| - }, |
552 |
| - { |
553 |
| - "Key" : "user", |
554 |
| - "Value" : { "Ref" : "EC2CreationUser" } |
| 527 | + "Value" : {"Fn::Sub" : "${AWS::StackName}-bastion-host"} |
555 | 528 | }
|
556 | 529 | ]
|
557 | 530 | }
|
|
606 | 579 | {
|
607 | 580 | "Ref": "RegCompany"
|
608 | 581 | },
|
609 |
| - "AWSQuickStart" |
| 582 | + "AWSQuickStart-WinBeta" |
610 | 583 | ]
|
611 | 584 | ]
|
612 | 585 | },
|
|
680 | 653 | "IF /I %Var% GEQ 3 GOTO FoundIt ",
|
681 | 654 | "call TIMEOUT /T 60 >nul ",
|
682 | 655 | "GOTO CheckForNodes ",
|
683 |
| - |
| 656 | + |
684 | 657 | ":FoundIt ",
|
685 | 658 | "call tsm.cmd login -u %1 -p %2 ",
|
686 | 659 | "call tsm.cmd topology set-process -n node2 -pr clustercontroller -c 1 ",
|
|
691 | 664 | "call tsm.cmd topology set-process -n node2 -pr searchserver -c 1 ",
|
692 | 665 | "call tsm.cmd topology set-process -n node2 -pr backgrounder -c 1 ",
|
693 | 666 | "call tsm.cmd topology set-process -n node2 -pr dataserver -c 1 ",
|
694 |
| - "call tsm.cmd topology set-process -n node2 -pr filestore -c 1 ", |
| 667 | + "call tsm.cmd topology set-process -n node2 -pr filestore -c 1 ", |
695 | 668 | "call tsm.cmd topology set-process -n node3 -pr clustercontroller -c 1 ",
|
696 | 669 | "call tsm.cmd topology set-process -n node3 -pr gateway -c 1 ",
|
697 | 670 | "call tsm.cmd topology set-process -n node3 -pr vizportal -c 2 ",
|
|
701 | 674 | "call tsm.cmd topology set-process -n node3 -pr backgrounder -c 1 ",
|
702 | 675 | "call tsm.cmd topology set-process -n node3 -pr dataserver -c 1 ",
|
703 | 676 | "call tsm.cmd topology set-process -n node3 -pr filestore -c 1 ",
|
704 |
| - "call tsm.cmd topology set-process -n node2 -pr pgsql -c 1 ", |
| 677 | + "call tsm.cmd topology set-process -n node2 -pr pgsql -c 1 ", |
705 | 678 | "call tsm.cmd pending-changes apply --ignore-warnings --ignore-prompt",
|
706 | 679 | "call tsm.cmd stop ",
|
707 | 680 | "call tsm.cmd topology deploy-coordination-service -n node1,node2,node3 ",
|
|
710 | 683 | "call TIMEOUT /T 120 ",
|
711 | 684 | "call tsm.cmd start -u %1 -p %2 ",
|
712 | 685 | "ECHO Completed topology deployment "
|
713 |
| - ] |
| 686 | + ] |
714 | 687 | ]}
|
715 | 688 | },
|
716 | 689 | "c:\\tabsetup\\python-3.6.4-amd64.exe": {
|
|
858 | 831 | "Tags": [
|
859 | 832 | {
|
860 | 833 | "Key" : "Name",
|
861 |
| - "Value" : {"Fn::Sub" : "${EC2CreationUser}-primary"} |
862 |
| - }, |
863 |
| - { |
864 |
| - "Key" : "keepalive", |
865 |
| - "Value" : { "Ref" : "EC2Keepalive" } |
866 |
| - }, |
867 |
| - { |
868 |
| - "Key" : "user", |
869 |
| - "Value" : { "Ref" : "EC2CreationUser" } |
| 834 | + "Value" : {"Fn::Sub" : "${AWS::StackName}-primary"} |
870 | 835 | }
|
871 | 836 | ]
|
872 | 837 | }
|
|
1033 | 998 | "M:",
|
1034 | 999 | "\\\\10.0.1.11\\c$\\tabsetup",
|
1035 | 1000 | {"Fn::Sub": "${Password}"},
|
1036 |
| - {"Fn::Sub": "/user:${Username}"} |
| 1001 | + {"Fn::Sub": "/user:10.0.1.11\\${Username}"} |
1037 | 1002 | ]
|
1038 | 1003 | ]
|
1039 | 1004 | },
|
|
1114 | 1079 | "Tags": [
|
1115 | 1080 | {
|
1116 | 1081 | "Key" : "Name",
|
1117 |
| - "Value" : {"Fn::Sub" : "${EC2CreationUser}-worker-1"} |
1118 |
| - }, |
1119 |
| - { |
1120 |
| - "Key" : "keepalive", |
1121 |
| - "Value" : { "Ref" : "EC2Keepalive" } |
1122 |
| - }, |
1123 |
| - { |
1124 |
| - "Key" : "user", |
1125 |
| - "Value" : { "Ref" : "EC2CreationUser" } |
| 1082 | + "Value" : {"Fn::Sub" : "${AWS::StackName}-worker-1"} |
1126 | 1083 | }
|
1127 | 1084 | ]
|
1128 | 1085 | }
|
|
1289 | 1246 | "M:",
|
1290 | 1247 | "\\\\10.0.1.11\\c$",
|
1291 | 1248 | {"Fn::Sub": "${Password}"},
|
1292 |
| - {"Fn::Sub": "/user:${Username}"} |
| 1249 | + {"Fn::Sub": "/user:10.0.1.11\\${Username}"} |
1293 | 1250 | ]
|
1294 | 1251 | ]
|
1295 | 1252 | },
|
|
1335 | 1292 | "N:",
|
1336 | 1293 | "\\\\10.0.1.12\\c$",
|
1337 | 1294 | {"Fn::Sub": "${Password}"},
|
1338 |
| - {"Fn::Sub": "/user:${Username}"} |
| 1295 | + {"Fn::Sub": "/user:10.0.1.12\\${Username}"} |
1339 | 1296 | ]
|
1340 | 1297 | ]
|
1341 | 1298 | },
|
|
1347 | 1304 | "cwd": "c:\\tabsetup",
|
1348 | 1305 | "waitAfterCompletion": "0"
|
1349 | 1306 | },
|
1350 |
| - "7.2-add-hostname3": { |
| 1307 | + "7.2-get-share3": { |
| 1308 | + "command": { |
| 1309 | + "Fn::Join": [ |
| 1310 | + " ", |
| 1311 | + [ |
| 1312 | + "net", |
| 1313 | + "use", |
| 1314 | + "O:", |
| 1315 | + "\\\\10.0.1.13\\c$", |
| 1316 | + {"Fn::Sub": "${Password}"}, |
| 1317 | + {"Fn::Sub": "/user:10.0.1.13\\${Username}"} |
| 1318 | + ] |
| 1319 | + ] |
| 1320 | + }, |
| 1321 | + "cwd": "c:\\tabsetup", |
| 1322 | + "waitAfterCompletion": "0" |
| 1323 | + }, |
| 1324 | + "7.3-add-hostname3": { |
1351 | 1325 | "command": "c:\\tabsetup\\AddHostname.cmd 10.0.1.13",
|
1352 | 1326 | "cwd": "c:\\tabsetup",
|
1353 | 1327 | "waitAfterCompletion": "0"
|
|
1407 | 1381 | "Tags": [
|
1408 | 1382 | {
|
1409 | 1383 | "Key" : "Name",
|
1410 |
| - "Value" : {"Fn::Sub" : "${EC2CreationUser}-worker-2"} |
1411 |
| - }, |
1412 |
| - { |
1413 |
| - "Key" : "keepalive", |
1414 |
| - "Value" : { "Ref" : "EC2Keepalive" } |
1415 |
| - }, |
1416 |
| - { |
1417 |
| - "Key" : "user", |
1418 |
| - "Value" : { "Ref" : "EC2CreationUser" } |
| 1384 | + "Value" : {"Fn::Sub" : "${AWS::StackName}-worker-2"} |
1419 | 1385 | }
|
1420 | 1386 | ]
|
1421 | 1387 | }
|
|
0 commit comments