-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup-server
More file actions
executable file
·25 lines (19 loc) · 882 Bytes
/
setup-server
File metadata and controls
executable file
·25 lines (19 loc) · 882 Bytes
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
#!/usr/bin/expect -f
spawn ambari-server setup
# Don't customize user account for ambari-server daemon
expect "Customize user account for ambari-server daemon \[y/n\] \(n\)?\r"
send "n\r"
# Download and install default JDK: Oracle JDK 1.8 + Java Cryptography Extension (JCE) Policy Files 8
expect "Enter choice \(1\):\r"
send "1\r"
# Accept license at http://www.oracle.com/technetwork/java/javase/terms/license/index.html
expect "Do you accept the Oracle Binary Code License Agreement \[y/n\] \(y\)?\r"
send "y\r"
# Enable Ambari Server to download and install GPL Licensed LZO packages
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
expect "Enable Ambari Server to download and install GPL Licensed LZO packages \[y/n\] \(n\)?\r"
send "y\r"
# Skip advanced PostgreSQL config
expect "Enter advanced database configuration \[y/n\] \(n\)?\r"
send "n\r"
expect eof