Skip to content

Commit

Permalink
Merge pull request #32 from cisco-en-programmability/cedge_adoption
Browse files Browse the repository at this point in the history
Cedge adoption
  • Loading branch information
przsus authored Dec 17, 2024
2 parents b77a9e6 + 517e266 commit da6fd33
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .ansible-lint
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ mock_modules:
# - fake_namespace.fake_collection.fake_module
# - fake_namespace.fake_collection.fake_module.fake_submodule
mock_roles:
- cisco.sdwan_deployment.aws_device_params
- cisco.sdwan_deployment.aws_network_infrastructure
- cisco.sdwan_deployment.aws_teardown
- cisco.sdwan_deployment.aws_controllers
- cisco.sdwan_deployment.aws_edges
- cisco.sdwan_deployment.azure_device_params
- cisco.sdwan_deployment.azure_network_infrastructure
- cisco.sdwan_deployment.azure_teardown
- cisco.sdwan_deployment.azure_controllers
- cisco.sdwan_deployment.azure_edges
- cisco.catalystwan.edge_params
- cisco.catalystwan.software_upgrades_remote
- cisco.catalystwan.api_ready
- cisco.catalystwan.administration_settings
Expand Down
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace: cisco
name: sdwan
version: 0.3.5
version: 0.3.6
readme: README.md
authors:
- Arkadiusz Cichon <acichon@cisco.com>
Expand Down
42 changes: 42 additions & 0 deletions playbooks/aws/ux2_cedge_adoption.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Copyright 2024 Cisco Systems, Inc. and its affiliates
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)

- name: Read deployed cEdge parameters
hosts: localhost
gather_facts: false
vars:
aws_tag_creator: "{{ organization_name }}"
vars_files:
- aws_sdwan_config.yml
roles:
- cisco.sdwan_deployment.aws_device_params
- cisco.catalystwan.edge_params

- name: Extract deployment facts
hosts: localhost
gather_facts: false
vars_files:
- aws_sdwan_config.yml
tasks:
- name: Generate deployment facts file for cEdges
ansible.builtin.include_role:
name: cisco.sdwan_deployment.common
tasks_from: generate_deployment_facts_edges.yml

- name: Build feature profile data
hosts: localhost
gather_facts: false
vars_files:
- ./feature_profile_config.yml
roles:
- cisco.catalystwan.feature_profile_builder

- name: Create Config Groups
hosts: localhost
gather_facts: false
vars_files:
- aws_sdwan_config.yml
- "{{ playbook_dir }}/results/generated_feature_profiles.yml"
- "{{ results_path_edges }}"
roles:
- cisco.catalystwan.config_groups
43 changes: 43 additions & 0 deletions playbooks/azure/ux2_cedge_adoption.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# Copyright 2024 Cisco Systems, Inc. and its affiliates
# GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt)

- name: Read deployed cEdge parameters
hosts: localhost
gather_facts: false
vars:
az_tag_creator: "{{ organization_name }}"
az_resource_group: "{{ az_resources_prefix }}-rg"
vars_files:
- azure_sdwan_config.yml
roles:
- cisco.sdwan_deployment.azure_device_params
- cisco.catalystwan.edge_params

- name: Extract deployment facts
hosts: localhost
gather_facts: false
vars_files:
- azure_sdwan_config.yml
tasks:
- name: Generate deployment facts file for cEdges
ansible.builtin.include_role:
name: cisco.sdwan_deployment.common
tasks_from: generate_deployment_facts_edges.yml

- name: Build feature profile data
hosts: localhost
gather_facts: false
vars_files:
- feature_profile_config.yml
roles:
- cisco.catalystwan.feature_profile_builder

- name: Create Config Groups
hosts: localhost
gather_facts: false
vars_files:
- azure_sdwan_config.yml
- "{{ playbook_dir }}/results/generated_feature_profiles.yml"
- "{{ results_path_edges }}"
roles:
- cisco.catalystwan.config_groups
4 changes: 2 additions & 2 deletions requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ collections:
- name: azure.azcollection
version: 1.19.0
- name: cisco.catalystwan
version: 0.3.2
- name: cisco.sdwan_deployment
version: 0.3.3
- name: cisco.sdwan_deployment
version: 0.3.4

0 comments on commit da6fd33

Please sign in to comment.