-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure_nsxalb_workload_domain.yaml
47 lines (45 loc) · 1.95 KB
/
configure_nsxalb_workload_domain.yaml
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
- name: Create Content Library for NSXALB
gather_facts: False
hosts: "{{ lab~'_mgmt_vcenter' }}"
roles:
- role: configure_vcsa_content_library
vars:
- target_datastore: shared_datastore
- vsphere_hostname: "{{inventory_hostname}}"
- vsphere_host_meta: "{{ hostvars[vsphere_hostname] }}"
- vsphere_username: "{{ vsphere_host_meta.sso_admin_username }}"
- vsphere_password: "{{ vsphere_host_meta.sso_admin_password }}"
- content_library_name: "nsxalb-se"
- content_library_description: "For nsxalb service engines"
tags:
- configure_nsxalb_content_lib
- name: Configure NSXALB Controller
gather_facts: False
hosts: "{{ lab~'_avi_controller' }}"
become: true
roles:
- role: configure_nsxalb_controller
tags: configure_nsxalb_base_config
- role: configure_nsxalb_nsx_cloud
tags: configure_nsxalb_nsxt_cloud
vars:
- avi_hostname: "{{ inventory_hostname }}"
- avi_host_meta: "{{ hostvars[avi_hostname] }}"
- avi_mgmt_ip: "{{ avi_host_meta.mgmt_interface_ip }}"
- avi_username: "{{ avi_host_meta.ansible_user }}"
- avi_password: "{{ avi_host_meta.ansible_ssh_pass }}"
- avi_api_version: "{{ components.avi.api_version }}"
- local_file_path: "{{ generic.archive_local_path }}"
- avi_license_file: "Avi_License.yml"
- vsphere_hostname: "{{groups[pod_name~'_mgmt_vcenter'][0]}}"
- vsphere_host_meta: "{{ hostvars[vsphere_hostname] }}"
- vsphere_username: "{{ vsphere_host_meta.sso_admin_username }}"
- vsphere_password: "{{ vsphere_host_meta.sso_admin_password }}"
- nsxt_hostname: "{{groups[pod_name~'_nsxt_manager'][0]}}"
- nsxt_host_meta: "{{ hostvars[nsxt_hostname] }}"
- nsxt_username: "admin"
- nsxt_password: "{{ nsxt_host_meta.ansible_ssh_pass }}"
- nsxt_t1: "{{pod_name}}-t1-management"
- nsxalb_se_data_seg: "{{pod_name}}_seg_nsxalb_se_data"
- nsxalb_se_mgmt_seg: "{{pod_name}}_seg_nsxalb_se_mgmt"
tags: configure_nsxalb