Skip to content

Commit

Permalink
ci(molecule): Change path to requirements in molecule actions (arista…
Browse files Browse the repository at this point in the history
…networks#830)

* ci(molecule): Change path to requirements

* ci(actions): Move to Molecule action in v1.1

* ci(molecule): Update CI artifacts
  • Loading branch information
titom73 authored Mar 29, 2021
1 parent 115922a commit c7f4823
Show file tree
Hide file tree
Showing 100 changed files with 224 additions and 39 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/molecule-cli-config-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@ jobs:
- uses: actions/checkout@v1

- name: Run molecule action
uses: arista-netdevops-community/action-molecule-avd@v1.0
uses: arista-netdevops-community/action-molecule-avd@v1.1
with:
molecule_parentdir: 'ansible_collections/arista/avd'
molecule_command: 'converge'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: development/requirements.txt
pip_file: ansible_collections/arista/avd/requirements.txt
ansible: "ansible==2.9.6"
check_git: true
check_git_enforced: true
5 changes: 3 additions & 2 deletions .github/workflows/molecule-cvp-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
- uses: actions/checkout@v1

- name: Run molecule action
uses: arista-netdevops-community/action-molecule-avd@v1.0
uses: arista-netdevops-community/action-molecule-avd@v1.1
with:
molecule_parentdir: 'ansible_collections/arista/avd'
molecule_command: 'converge'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: development/requirements.txt
pip_file: ansible_collections/arista/avd/requirements.txt
ansible: "ansible==2.9.6"
check_git: true
check_git_enforced: true
5 changes: 3 additions & 2 deletions .github/workflows/molecule-dhcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
- uses: actions/checkout@v1

- name: Run molecule action
uses: arista-netdevops-community/action-molecule-avd@v1.0
uses: arista-netdevops-community/action-molecule-avd@v1.1
with:
molecule_parentdir: 'ansible_collections/arista/avd'
molecule_command: 'converge'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: development/requirements.txt
pip_file: ansible_collections/arista/avd/requirements.txt
ansible: "ansible==2.9.6"
check_git: true
check_git_enforced: true
5 changes: 3 additions & 2 deletions .github/workflows/molecule-eos-designs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ jobs:
- uses: actions/checkout@v1

- name: Run molecule action
uses: arista-netdevops-community/action-molecule-avd@v1.0
uses: arista-netdevops-community/action-molecule-avd@v1.1
with:
molecule_parentdir: 'ansible_collections/arista/avd'
molecule_command: 'converge'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: development/requirements.txt
pip_file: ansible_collections/arista/avd/requirements.txt
ansible: "ansible==2.9.6"
check_git: true
check_git_enforced: true
5 changes: 3 additions & 2 deletions .github/workflows/molecule-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@ jobs:
- uses: actions/checkout@v1

- name: Run molecule action
uses: arista-netdevops-community/action-molecule-avd@v1.0
uses: arista-netdevops-community/action-molecule-avd@v1.1
with:
molecule_parentdir: 'ansible_collections/arista/avd'
molecule_command: 'test'
molecule_args: '--scenario-name ${{ matrix.avd_scenario }}'
pip_file: development/requirements.txt
pip_file: ansible_collections/arista/avd/requirements.txt
ansible: "ansible==2.9.6"
check_git: true
check_git_enforced: true

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ venv.bak/
.mypy_cache/

.vscode/*
**/.vscode/*

# Installation path for CVP example
examples/evpn-l3ls-cvp-deployment/collections
Expand Down
11 changes: 11 additions & 0 deletions ansible_collections/arista/avd/molecule/MOLECULE_SCENARIOS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
eos_cli_config_gen
eos_config_deploy_cvp
eos_config_deploy_cvp_list
eos_designs-twodc-5stage-clos
eos_l3ls_evpn-twodc-5stage-clos
eos_l3ls_evpn_deprecation_test
evpn_underlay_ebgp_overlay_ebgp
evpn_underlay_isis_overlay_ibgp
evpn_underlay_ospf_overlay_ebgp
evpn_underlay_rfc5549_overlay_ebgp
upgrade_v1.0_to_v1.1
18 changes: 9 additions & 9 deletions ansible_collections/arista/avd/molecule/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ converge: ## Execute molecule CONVERGE sequence. By default eos_cli_config_gen.

.PHONY: refresh-facts
refresh-facts: ## Run all molecule scenarios
@for MOLECULE_SCENARIO in * ; do \
if [ -d "$$MOLECULE_SCENARIO" ]; then\
echo "Run scenrario for "$$MOLECULE_SCENARIO && \
cd .. ; \
molecule converge --scenario-name $$MOLECULE_SCENARIO ; \
cd ./molecule ; \
fi \
done
@while read -r MOLECULE_SCENARIO; do \
if [ -d "$$MOLECULE_SCENARIO" ]; then\
echo "Run scenrario for "$$MOLECULE_SCENARIO && \
cd .. ; \
molecule converge --scenario-name $$MOLECULE_SCENARIO ; \
cd ./molecule ; \
fi \
done <MOLECULE_SCENARIOS.txt

.PHONY: commit-facts
commit-facts: ## Commit updated facts for CI
git status --short
git add .
git commit --no-verify -m 'Update CI artifacts' ./
git commit --no-verify -m 'ci(molecule): Update CI artifacts' ./

.PHONY: test-git-status
test-git-status: ## Run post molecule script to check git status
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_BL1
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65104
leaf_id: 6
switch_mgmt_ip: 192.168.200.110/24
Expand Down Expand Up @@ -71,6 +72,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_BL1
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65104
leaf_id: 7
switch_mgmt_ip: 192.168.200.111/24
Expand Down Expand Up @@ -71,6 +72,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l2leaf_node_group: DC1_L2LEAF1
switch_platform: vEOS-LAB
switch_rack: null
leaf_id: 8
switch_mgmt_ip: 192.168.200.112/24
switch_inband_management_ip: null
Expand Down Expand Up @@ -65,6 +66,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l2leaf_node_group: DC1_L2LEAF2
switch_platform: vEOS-LAB
switch_rack: null
leaf_id: 9
switch_mgmt_ip: 192.168.200.113/24
switch_inband_management_ip: null
Expand Down Expand Up @@ -93,6 +94,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l2leaf_node_group: DC1_L2LEAF2
switch_platform: vEOS-LAB
switch_rack: null
leaf_id: 10
switch_mgmt_ip: 192.168.200.114/24
switch_inband_management_ip: null
Expand Down Expand Up @@ -93,6 +94,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_LEAF1
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65101
leaf_id: 1
switch_mgmt_ip: 192.168.200.105/24
Expand Down Expand Up @@ -67,6 +68,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_LEAF2
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65102
leaf_id: 2
switch_mgmt_ip: 192.168.200.106/24
Expand Down Expand Up @@ -99,6 +100,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_LEAF2
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65102
leaf_id: 3
switch_mgmt_ip: 192.168.200.107/24
Expand Down Expand Up @@ -99,6 +100,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
switch_platform: vEOS-LAB
switch_rack: null
switch_mgmt_ip: 192.168.200.101/24
switch_bgp_as: 65001
switch_router_id: 192.168.255.1
Expand Down Expand Up @@ -48,6 +49,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: none
aaa_authorization: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
switch_platform: vEOS-LAB
switch_rack: null
switch_mgmt_ip: 192.168.200.102/24
switch_bgp_as: 65001
switch_router_id: 192.168.255.2
Expand Down Expand Up @@ -48,6 +49,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: none
aaa_authorization: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
switch_platform: vEOS-LAB
switch_rack: null
switch_mgmt_ip: 192.168.200.103/24
switch_bgp_as: 65001
switch_router_id: 192.168.255.3
Expand Down Expand Up @@ -48,6 +49,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: none
aaa_authorization: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
switch_platform: vEOS-LAB
switch_rack: null
switch_mgmt_ip: 192.168.200.104/24
switch_bgp_as: 65001
switch_router_id: 192.168.255.4
Expand Down Expand Up @@ -48,6 +49,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: none
aaa_authorization: null
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_SVC3
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65103
leaf_id: 4
switch_mgmt_ip: 192.168.200.108/24
Expand Down Expand Up @@ -109,6 +110,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_SVC3
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65103
leaf_id: 5
switch_mgmt_ip: 192.168.200.109/24
Expand Down Expand Up @@ -109,6 +110,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_BL1
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65104
leaf_id: 6
switch_mgmt_ip: 192.168.200.110/24
Expand Down Expand Up @@ -71,6 +72,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l3leaf_node_group: DC1_BL1
switch_platform: vEOS-LAB
switch_rack: null
switch_bgp_as: 65104
leaf_id: 7
switch_mgmt_ip: 192.168.200.111/24
Expand Down Expand Up @@ -71,6 +72,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l2leaf_node_group: DC1_L2LEAF1
switch_platform: vEOS-LAB
switch_rack: null
leaf_id: 8
switch_mgmt_ip: 192.168.200.112/24
switch_inband_management_ip: null
Expand Down Expand Up @@ -65,6 +66,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
l2leaf_node_group: DC1_L2LEAF2
switch_platform: vEOS-LAB
switch_rack: null
leaf_id: 9
switch_mgmt_ip: 192.168.200.113/24
switch_inband_management_ip: null
Expand Down Expand Up @@ -93,6 +94,7 @@ ntp_server:
nodes:
- 192.168.200.5
redundancy: null
snmp_server: null
spanning_tree:
mode: mstp
mst_instances:
Expand Down
Loading

0 comments on commit c7f4823

Please sign in to comment.