aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/testbed-setup/ansible/roles/virl/tasks/02-virl-bootstrap.yaml
blob: 9ffb40caaf64cad621ade863e6c26ceb091f1a5d (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
---
  - name: install virl-bootstrap
    git:
        repo: 'https://github.com/VIRL-Open/virl-bootstrap.git'
        dest: /home/virl/virl-bootstrap
        version: xenial
    become_user: virl
  - name: copy vsetting file to /etc
    shell: /usr/bin/install -m 666 /home/virl/virl-bootstrap/vsettings.ini /etc/virl.ini
    become: yes
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT hostname {{ hostname }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT domain_name linuxfoundation.org
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT using_dhcp_on_the_public_port False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT public_port dummy3
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT Static_IP 10.30.49.28
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT public_network 10.30.49.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT public_netmask {{ ansible_default_ipv4["netmask"] }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT public_gateway 10.30.49.1
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT proxy False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT ntp_server pool.ntp.org
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT first_nameserver 199.204.44.24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT second_nameserver 199.204.47.54
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT salt_master vsm-md.virl.info
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT salt_id {{ hostname }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT salt_domain linuxfoundation.org
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT salt_masterless false
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_port {{ virl_public_port }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_network {{ virl_l2_network }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_mask 255.255.255.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_network_gateway {{ virl_l2_gateway }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_start_address {{ virl_l2_start }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_end_address {{ virl_l2_end }}
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_address {{ ansible_default_ipv4["address"] }}/24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT first_flat_nameserver 199.204.44.24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT second_flat_nameserver 199.204.47.54
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_port2_enabled True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_port2 dummy0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_network2 172.16.2.0/24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_mask2 255.255.255.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_network_gateway2 172.16.2.1
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_start_address2 172.16.2.50
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_end_address2 172.16.2.253
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l2_address2 172.16.2.254/24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT first_flat2_nameserver 199.204.44.24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT second_flat2_nameserver 199.204.47.54
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_port dummy1
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_network 172.16.3.0/24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_mask 255.255.255.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_network_gateway 172.16.3.1
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_floating_start_address 172.16.3.50
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_floating_end_address 172.16.3.253
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT l3_address 172.16.3.254/24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT first_snat_nameserver 199.204.44.24
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT second_snat_nameserver 199.204.47.54
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT ramdisk True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT ank 19401
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT ank_live 19402
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT virl_webservices 19399
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT virl_user_management 19400
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT virl_apache_port 80
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT virl_webmux 19403
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT Start_of_serial_port_range 17000
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT End_of_serial_port_range 18000
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT serial_port 19406
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vnc_port 19407
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT location_region US
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vnc False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT guest_account True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT user_list tb4-virl:Cisco1234
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT uwmadmin_password Cisco1234
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT password password
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT mysql_password password
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT keystone_service_token fkgjhsdflkjh
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT enable_cinder True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT cinder_file True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT cinder_size 20000
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT cinder_location /var/lib/cinder/cinder-volumes.lvm
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT dummy_int True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT this_node_is_the_controller True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_controller_hostname controller
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_controller_IP 172.16.10.250
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_port dummy2
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_IP 172.16.10.250
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_network 172.16.10.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_netmask 255.255.255.0
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT internalnet_gateway 172.16.10.1
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT iosv True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT csr1000v True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT iosxrv432 False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT iosxrv52 False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT iosxrv True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT nxosv True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vpagent True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT iosvl2 True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT asav True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT lxc_server True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT lxc_iperf True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT lxc_routem True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT lxc_ostinato True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT server True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vmm_mac True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vmm_win32 True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vmm_win64 True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT vmm_linux True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT virl_clients True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT ram_overcommit 2
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT web_editor True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT mitaka True
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT kilo False
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT libvirt_cpu_mode host-passthrough
    become_user: virl
  - command: crudini --inplace --set /etc/virl.ini DEFAULT neutron_bridge_flooding True
    become_user: virl
  - name: copy vinstall bootstrap wrapper script
    template: src=files/virl/virl-bootstrap-wrapper dest=/home/virl/virl-bootstrap/virl-bootstrap-wrapper owner=virl group=virl mode=775
    become_user: virl