Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cedge adoption #32

Merged
merged 2 commits into from
Dec 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading