aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/playbooks/files/virl/virl-bootstrap-wrapper
blob: e2d0a5fd08f2a44614beebac47f54f3d6e47b1c4 (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
59
#!/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 "us-1.virl.info,us-2.virl.info,us-4.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 "Determining pillar cache"
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