Skip to content

Commit cf3014c

Browse files
committed
Readme
1 parent baa360b commit cf3014c

File tree

1 file changed

+73
-0
lines changed

1 file changed

+73
-0
lines changed

roles/policies/README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Ansible Role: policies
2+
3+
This Ansible role provides user with a few, ready to use, legacy policies scenarios. It handles creating legacy policies along will all required policies definitions and lists.
4+
5+
## Role Description
6+
7+
The `policies` role performs the following tasks:
8+
9+
1. Create legacy policies based on user provided configuration. Supported scenarios:
10+
- hub and spoke topology
11+
- mesh topology
12+
- application route policy
13+
- acl policy
14+
- geolocation blockade
15+
16+
## Requirements
17+
18+
- `cisco.catalystwan` collection installed.
19+
- Access details for the Cisco Manager instance must be provided.
20+
21+
## Dependencies
22+
23+
There are no external role dependencies. Only `cisco.catalystwan` collection is required.
24+
25+
## Role Variables
26+
27+
Variables expected by this role:
28+
29+
- `vmanage_instances`: A list of vManage instances containing management IP, admin username, and admin password.
30+
- `policies`: A dictionary containing configuration of policies
31+
32+
Example of `vmanage_instances`:
33+
34+
```yaml
35+
vmanage_instances:
36+
- hostname: 'vmanage01'
37+
system_ip: '192.0.2.10'
38+
mgmt_public_ip: '198.51.100.10'
39+
admin_username: 'admin'
40+
admin_password: 'password'
41+
```
42+
43+
Example of `policies`:
44+
```yaml
45+
policies:
46+
mesh:
47+
- name: my_mesh_policy
48+
vpns:
49+
- 100
50+
- 101
51+
regions:
52+
- name: mesh_region1
53+
sites:
54+
- 100
55+
- name: mesh_region2
56+
sites:
57+
- 101
58+
app_route:
59+
- name: my_app_counter
60+
match:
61+
source_ip: 10.0.0.0/24
62+
destination_port: 64534
63+
action:
64+
counter: my_counter
65+
```
66+
67+
## License
68+
69+
"GPL-3.0-only"
70+
71+
## Author Information
72+
73+
This role was created by Piotr Piwowarski <[email protected]>

0 commit comments

Comments
 (0)