-
Notifications
You must be signed in to change notification settings - Fork 7
/
runansi_add_node.sh
80 lines (64 loc) · 1.62 KB
/
runansi_add_node.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
#!/bin/bash
# exit on any playbook exception
set -ue
cd ansible
echo "---- Adding a new Node to an existing DSE cluster ----"
echo ""
echo "---- The system will exit IMMEDIATELY if DSE/Cassandra data directories already exist on the target node ! ----"
echo
echo ">>>> Install DSE on new Node <<<<"
echo
ansible-playbook add_node_install.yml
echo
echo
echo ">>>> Install DSE security dependencies on new Node <<<<"
echo
ansible-playbook add_node_security_install_dependencies.yml
echo
echo
echo ">>>> Activate DSE cluster Unified Authentication on new Node <<<<"
echo
ansible-playbook add_node_authentication.yml
echo
echo
echo ">>>> Configure DSE Role Management <<<<"
echo
ansible-playbook add_node_role_management.yml
echo
echo
echo ">>>> Setup DSE cluster Transport Encryption on new Node <<<<"
echo
ansible-playbook add_node_security.yml
echo
echo
echo ">>>> Activate JMX Unified Authentication on new Node <<<<"
echo
ansible-playbook add_node_jmx_authentication.yml
echo
echo ">>>> Configure Spark security for new Node (if required) <<<<"
echo
echo ">>>> Setup Spark Transport Encryption on new node <<<<"
echo
ansible-playbook add_node_spark_security.yml
echo
echo
echo ">>>> Activate Spark Authentication on new Node <<<<"
echo
ansible-playbook add_node_spark_authentication.yml
echo
echo
echo ">>>> Configure DSEFS, AlwaysOnSQL, Spark Worker cleanup and Logging on new Node <<<<"
echo
ansible-playbook add_node_spark_configure.yml
echo
echo
echo ">>>> Start DSE on new Node <<<<"
echo
ansible-playbook add_node_dse_start.yml
echo
echo
echo ">>>> Start Agent on new Node <<<<"
echo
ansible-playbook add_node_agents_start.yml
echo
cd ..