|
11 | 11 | # * Second machine is SNO cluster
|
12 | 12 | #
|
13 | 13 |
|
14 |
| -- name: Set ocp inventory download url from lab wiki - scalelab |
| 14 | +- name: Set ocp inventory download url from lab wiki - scalelab and performancelab |
15 | 15 | set_fact:
|
16 |
| - ocp_inventory_url: "https://{{ labs[lab]['quads'] }}/instack/{{ lab_cloud }}_ocpinventory.json" |
17 |
| - when: ocp_inventory_override | string | length < 1 and lab == 'scalelab' |
18 |
| - |
19 |
| -- name: Set ocp inventory download url from lab wiki - performancelab |
20 |
| - set_fact: |
21 |
| - ocp_inventory_url: "http://{{ labs[lab]['quads'] }}/cloud/{{ lab_cloud }}_ocpinventory.json" |
22 |
| - when: ocp_inventory_override | string | length < 1 and lab == 'performancelab' |
| 16 | + ocp_inventory_url: "http://{{ labs[lab]['quads'] }}/instack/{{ lab_cloud }}_ocpinventory.json" |
| 17 | + when: ocp_inventory_override | string | length < 1 and (lab == 'scalelab' or lab == 'performancelab') |
23 | 18 |
|
24 | 19 | - name: Set ocp inventory download url to override
|
25 | 20 | set_fact:
|
|
56 | 51 | password: "{{ ocpinventory.json.nodes[0].pm_password }}"
|
57 | 52 | validate_certs: false
|
58 | 53 | register: quads_assignment
|
59 |
| - when: lab == "scalelab" |
| 54 | + when: lab == "scalelab" or lab == "performancelab" |
60 | 55 |
|
61 | 56 | - name: Public scalelab VLAN - Set addressing information
|
62 | 57 | set_fact:
|
63 | 58 | controlplane_network: "{{ quads_assignment.json.vlan.ip_range }}"
|
64 | 59 | controlplane_network_prefix: "{{ quads_assignment.json.vlan.ip_range | ipaddr('prefix') }}"
|
65 | 60 | controlplane_network_gateway: "{{ quads_assignment.json.vlan.gateway }}"
|
66 | 61 | cluster_name: "vlan{{ quads_assignment.json.vlan.vlan_id }}"
|
67 |
| - when: lab == "scalelab" |
68 |
| - |
69 |
| - - name: Get VLAN info from performancelab quads |
70 |
| - shell: | |
71 |
| - set -o pipefail |
72 |
| - curl -sk https://wiki.rdu3.labs.perfscale.redhat.com/vlans/ | grep -B7 {{ lab_cloud }} | sed -E 's#</?td>##g'| tr '\n' ' ' | column -J --table-columns vlan_id,cidr,netmask,gateway,ipfree,owner,ticket,cloud |
73 |
| - register: vlan_info |
74 |
| - when: lab == "performancelab" |
75 |
| - |
76 |
| - - name: Public performancelab VLAN - Set addressing information |
77 |
| - set_fact: |
78 |
| - controlplane_network: "{{ (vlan_info.stdout | from_json).table[0].cidr }}" |
79 |
| - controlplane_network_prefix: "{{ (vlan_info.stdout | from_json).table[0].cidr | ipaddr('prefix') }}" |
80 |
| - controlplane_network_gateway: "{{ (vlan_info.stdout | from_json).table[0].gateway }}" |
81 |
| - cluster_name: "vlan{{ (vlan_info.stdout | from_json).table[0].vlan_id }}" |
82 |
| - when: lab == "performancelab" |
| 62 | + when: lab == "scalelab" or lab == "performancelab" |
83 | 63 |
|
84 | 64 | - name: Multi node cluster type tasks
|
85 | 65 | when: cluster_type == "mno"
|
|
0 commit comments