aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper
blob: dc7ead804dc4731a7bd57f4af3e1410b81987fd3 (plain)
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
#!/usr/bin/expect

if ![ string equal $::env(USER) "root"] {
  puts "Please re-run this script as root."
  exit 1
}

log_file /tmp/virl-bootstrap.log
set timeout 3600

spawn  ./virl-bootstrap.py
expect "Which step are you on"
send "1\r"

expect "Salt master"
send "vsm-md.virl.info\r"

expect "Which step are you on"
send "2\r"

expect "Salt id"
send "{{ hostname }}\r"
expect "Salt domain name"
send "linuxfoundation.org\r"

expect "Which step are you on"
send "3\r"

expect "System hostname"
send "{{ hostname }}\r"
expect "System Domain name"
send "linuxfoundation.org\r"

expect "Which step are you on"
send "4\r"

puts "*******************STEP 6*************************************************************************************************************************************************"
expect "Which step are you on"
send "6\r"
expect "Salt installed"

puts "*******************STEP 8*************************************************************************************************************************************************"
expect "Which step are you on"
send "8\r"

expect "True"

puts "*******************STEP 9*************************************************************************************************************************************************"
expect "Which step are you on"
send "9\r"

expect "Failed:     0"

puts "*******************STEP 11*************************************************************************************************************************************************"
expect "Which step are you on"
send "11\r"

expect eof