Skip to content
This repository was archived by the owner on Nov 9, 2020. It is now read-only.

Commit cb9455e

Browse files
chris1984tompscanlan
authored andcommitted
Fixes #5 - Add VDS task variables. (#15)
1 parent 6aa5fd5 commit cb9455e

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

tasks/networking.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
numUplinks: "{{ item['uplinks'] }}"
2525
numPorts: "{{ item['ports'] }}"
2626
productVersion: "{{ item['productVersion'] }}"
27-
mtu: 1600
28-
discovery_protocol: 'lldp'
29-
discovery_operation: 'both'
27+
mtu: "{{ mtu }}"
28+
discovery_protocol: "{{ discovery_protocol }}"
29+
discovery_operation: "{{ discovery_operation }}"
3030
state: "present"
3131
with_items: "{{ oob_vcenter['dvs'] }}"
3232
tags:
@@ -42,9 +42,9 @@
4242
numUplinks: "{{ item['uplinks'] }}"
4343
numPorts: "{{ item['ports'] }}"
4444
productVersion: "{{ item['productVersion'] }}"
45-
mtu: 1600
46-
discovery_protocol: 'lldp'
47-
discovery_operation: 'both'
45+
mtu: "{{ mtu }}"
46+
discovery_protocol: "{{ discovery_protocol }}"
47+
discovery_operation: "{{ discovery_operation }}"
4848
state: "present"
4949
with_items: "{{ ib_vcenter['dvs'] }}"
5050
tags:
@@ -59,9 +59,9 @@
5959
vds_name: "{{ item['name'] }}"
6060
numUplinks: "{{ item['uplinks'] }}"
6161
numPorts: "{{ item['ports'] }}"
62-
mtu: 1600
63-
discovery_protocol: 'lldp'
64-
discovery_operation: 'both'
62+
mtu: "{{ mtu }}"
63+
discovery_protocol: "{{ discovery_protocol }}"
64+
discovery_operation: "{{ discovery_operation }}"
6565
productVersion: "{{ item['productVersion'] }}"
6666
state: "absent"
6767
with_items: "{{ oob_vcenter['dvs'] }}"
@@ -78,9 +78,9 @@
7878
numUplinks: "{{ item['uplinks'] }}"
7979
numPorts: "{{ item['ports'] }}"
8080
productVersion: "{{ item['productVersion'] }}"
81-
mtu: 1600
82-
discovery_protocol: 'lldp'
83-
discovery_operation: 'both'
81+
mtu: "{{ mtu }}"
82+
discovery_protocol: "{{ discovery_protocol }}"
83+
discovery_operation: "{{ discovery_operation }}"
8484
state: "absent"
8585
with_items: "{{ ib_vcenter['dvs'] }}"
8686
tags:
@@ -197,7 +197,7 @@
197197
ip_address: "{{ item.1.storage_ip }}"
198198
subnet_mask: "{{ item.1.storage_netmask }}"
199199
service_type:
200-
mtu: 1500
200+
mtu: "{{ mtu }}"
201201
state: 'present'
202202
with_subelements:
203203
- oob_vcenter.clusters
@@ -216,7 +216,7 @@
216216
ip_address: "{{ item.1.vmotion_ip }}"
217217
subnet_mask: "{{ item.1.vmotion_netmask }}"
218218
service_type: "{{ item.1.vmotion_service_type }}"
219-
mtu: 1500
219+
mtu: "{{ mtu }}"
220220
state: 'present'
221221
with_subelements:
222222
- oob_vcenter.clusters
@@ -235,7 +235,7 @@
235235
ip_address: "{{ item.1.storage_ip }}"
236236
subnet_mask: "{{ item.1.storage_netmask }}"
237237
service_type:
238-
mtu: 1500
238+
mtu: "{{ mtu }}"
239239
state: 'present'
240240
with_subelements:
241241
- ib_vcenter.clusters
@@ -254,7 +254,7 @@
254254
ip_address: "{{ item.1.vmotion_ip }}"
255255
subnet_mask: "{{ item.1.vmotion_netmask }}"
256256
service_type: "{{ item.1.vmotion_service_type }}"
257-
mtu: 1500
257+
mtu: "{{ mtu }}"
258258
state: 'present'
259259
with_subelements:
260260
- ib_vcenter.clusters

vars/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@
1515
#
1616
---
1717
vcenter_role_directory: "/opt/chaperone-ansible/roles/vcenter"
18+
mtu: "1600"
19+
discovery_protocol: "lldp"
20+
discovery_operation: "both"

0 commit comments

Comments
 (0)