-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdc2-fabric-deploy-cvp.yml
52 lines (43 loc) · 1.21 KB
/
dc2-fabric-deploy-cvp.yml
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
---
- name: Build Switch configuration
hosts: DC2_FABRIC
connection: local
gather_facts: no
tasks:
- name: include global_vars
tags: [build, provision]
include_vars: "{{ item }}"
with_items:
- "../global_vars/AVD_LAB.yml"
- "../global_vars/EOS.yml"
- name: generate intented variables
tags: [build]
import_role:
name: arista.avd.eos_l3ls_evpn
- name: generate intented DCI variables
tags: [build, provision]
import_role:
name: eos_dci
- name: generate device intended config and documention
tags: [build]
import_role:
name: arista.avd.eos_cli_config_gen
- name: Configuration deployment with CVP
hosts: CVP-1
connection: local
gather_facts: no
tasks:
- name: upload cvp configlets
import_role:
name: arista.avd.cvp_configlet_upload
vars:
configlets_cvp_prefix: 'DC2-CUSTOM'
configlet_directory: "{{inventory_dir}}/configlets"
- name: run CVP provisioning
import_role:
name: arista.avd.eos_config_deploy_cvp
vars:
container_root: 'DC2_FABRIC'
configlets_prefix: 'DC2-AVD'
device_filter: 'DC2'
state: present