e2d0a5fd08f2a44614beebac47f54f3d6e47b1c4
[csit.git] / resources / tools / testbed-setup / playbooks / files / virl / virl-bootstrap-wrapper
1 #!/usr/bin/expect
2
3 if ![ string equal $::env(USER) "root"] {
4   puts "Please re-run this script as root."
5   exit 1
6 }
7
8 log_file /tmp/virl-bootstrap.log
9 set timeout 3600
10
11 spawn  ./virl-bootstrap.py
12 expect "Which step are you on"
13 send "1\r"
14
15 expect "Salt master"
16 send "us-1.virl.info,us-2.virl.info,us-4.virl.info\r"
17
18 expect "Which step are you on"
19 send "2\r"
20
21 expect "Salt id"
22 send "{{ hostname }}\r"
23 expect "Salt domain name"
24 send "linuxfoundation.org\r"
25
26 expect "Which step are you on"
27 send "3\r"
28
29 expect "System hostname"
30 send "{{ hostname }}\r"
31 expect "System Domain name"
32 send "linuxfoundation.org\r"
33
34 expect "Which step are you on"
35 send "4\r"
36
37 puts "*******************STEP 6*************************************************************************************************************************************************"
38 expect "Which step are you on"
39 send "6\r"
40 expect "Salt installed"
41
42 puts "*******************STEP 8*************************************************************************************************************************************************"
43 expect "Which step are you on"
44 send "8\r"
45
46 expect "Determining pillar cache"
47 expect "True"
48
49 puts "*******************STEP 9*************************************************************************************************************************************************"
50 expect "Which step are you on"
51 send "9\r"
52
53 expect "Failed:     0"
54
55 puts "*******************STEP 11*************************************************************************************************************************************************"
56 expect "Which step are you on"
57 send "11\r"
58
59 expect eof