CSIT-597: spot fixes for crudini, interface differences
[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 "vsm-md.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 "True"
47
48 puts "*******************STEP 9*************************************************************************************************************************************************"
49 expect "Which step are you on"
50 send "9\r"
51
52 expect "Failed:     0"
53
54 puts "*******************STEP 11*************************************************************************************************************************************************"
55 expect "Which step are you on"
56 send "11\r"
57
58 expect eof