-
Notifications
You must be signed in to change notification settings - Fork 7
/
runansi_add_datacenter.sh
executable file
·107 lines (84 loc) · 2.38 KB
/
runansi_add_datacenter.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/bin/bash
# exit on any playbook exception
set -ue
cd ansible
echo "---- Adding a new Datacenter to an existing DSE cluster ----"
echo ""
echo "---- The system will exit IMMEDIATELY if DSE/Cassandra data directories already exist on the target nodes ! ----"
echo
echo ">>>> Install DSE on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_install.yml
echo
echo
echo ">>>> Install DSE security dependencies on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_security_install_dependencies.yml
echo
echo
echo ">>>> This is a new Datacenter, disable auto_bootstrap !!!!!! <<<< - COMPLETED"
echo
ansible-playbook add_datacenter_disable_auto_bootstrap.yml
echo
echo
echo ">>>> Setup Transport Encryption on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_security.yml
echo
echo ">>>> Configure Spark security on new Datacenter nodes (if required) <<<<"
echo
echo ">>>> Setup Spark Transport Encryption on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_spark_security.yml
echo
echo
echo ">>>> Configure DSEFS, AlwaysOnSQL, Spark Worker cleanup and Logging on new Datacenter nodes TODO: BUG ON DSEFS formatting <<<<"
echo
ansible-playbook add_datacenter_spark_configure.yml
echo
echo
echo ">>>> Start DSE in new Datacenter <<<<"
echo
ansible-playbook add_datacenter_dse_start.yml
echo
echo
echo ">>>> Start Agents in new Datacenter <<<<"
echo
ansible-playbook add_datacenter_agents_start.yml
echo
echo
echo ">>>> Re-Configure DSE and SPARK Keyspaces - Strategy / Replication / Repair <<<<"
echo
ansible-playbook add_datacenter_keyspace_replication_configure.yml
echo
echo
echo ">>>> Start DSE in new Datacenter <<<<"
echo
ansible-playbook add_datacenter_dse_stop.yml
echo
echo
echo ">>>> Activate Unified Authentication on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_authentication.yml
echo
echo
echo ">>>> Activate Unified Authentication on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_role_management.yml
echo
echo
echo ">>>> Activate JMX Unified Authentication on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_jmx_authentication.yml
echo
echo
echo ">>>> Activate Spark Authentication on new Datacenter nodes <<<<"
echo
ansible-playbook add_datacenter_spark_authentication.yml
echo
echo
echo ">>>> Start DSE in new Datacenter <<<<"
echo
ansible-playbook add_datacenter_dse_start.yml
echo
cd ..