-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 222fea8
Showing
208 changed files
with
7,509 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
10.255.139.147 | ||
10.255.139.185 | ||
10.255.139.186 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
- name: Sample role for configuring Nexus 9000 leaf switches in the ITC | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: configure_access_ports, debug: on} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
10.255.139.147 | ||
10.255.139.185 | ||
10.255.139.186 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Sample role for configuring Nexus 9000 leaf switches in the ITC | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_add_tenant, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
10.255.139.147 | ||
10.255.139.185 | ||
10.255.139.186 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Sample role for configuring Nexus 9000 leaf switches in the ITC | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_add_vlan, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
- name: Build the initial configuration on the Spine switches | ||
hosts: evpn-spine | ||
|
||
roles: | ||
- {role: evpn_build_spine, debug: on} | ||
|
||
- name: Build the leaf switches | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_build_leaf, debug: on} | ||
|
||
- name: Update the Spine BGP and uplink configuration | ||
hosts: evpn-spine | ||
|
||
roles: | ||
- {role: evpn_update_spine,debug: on} | ||
|
||
- name: Configure access ports | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: configure_access_ports, debug: on} | ||
|
||
- name: Add tenants | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_add_tenant, debug: on} | ||
|
||
- name: Add vlans | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_add_vlan, debug: on} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10.255.139.146 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Role for configuring Nexus 9000 leaf switches | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_build_leaf, debug: on} | ||
|
||
- name: Role for configuring BGP and uplinks on the spine switches | ||
hosts: evpn-spine | ||
|
||
roles: | ||
- {role: evpn_update_spine, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10.255.139.146 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Role for configuring Nexus 9000 leaf switches | ||
hosts: evpn-spine | ||
|
||
roles: | ||
- {role: evpn_build_spine, debug: on} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Sample role for configuring Nexus 9000 leaf switches in the ITC | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_delete_tenant, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
- name: Sample role for configuring Nexus 9000 leaf switches in the ITC | ||
hosts: evpn-leaf | ||
|
||
roles: | ||
- {role: evpn_delete_vlan, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
- name: Role for configuring Nexus 9000 leaf switches | ||
hosts: evpn-leaf,evpn-spine | ||
|
||
roles: | ||
- {role: evpn_teardown, debug: on} | ||
|
||
#- name: Role for configuring BGP and uplinks on the spine switches | ||
# hosts: evpn-spine | ||
# | ||
# roles: | ||
# - {role: evpn_update_spine, debug: on} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
ansible.cfg | ||
hosts | ||
*.retry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
- name: Create administrator account for student exercises | ||
hosts: aci | ||
connection: local | ||
gather_facts: no | ||
|
||
vars_prompt: | ||
- name: "APIC_password" | ||
prompt: "Enter APIC password" | ||
private: yes | ||
|
||
vars: | ||
local_path: ./xml | ||
|
||
tasks: | ||
|
||
- name: Add local user | ||
aci_install_config: | ||
xml_file: "{{local_path}}/aaaUser_netdeploy.xml" | ||
URI: /api/mo/uni/userext.xml | ||
host: "{{inventory_hostname}}" | ||
username: admin | ||
password: "{{APIC_password}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$ANSIBLE_VAULT;1.1;AES256 | ||
36623561333033633630366132396564616636636564646634313437373035306630613030623562 | ||
6464313165306335636539646634363563643039386236620a646636636430386262336336386662 | ||
30343631626261396465656430323862616166663933323963313166353763313233663666656364 | ||
3433333964333962310a396661616532653066363834613131363339363336396165653038646562 | ||
34653838613432323863303961666633373961633565663133373033363633626439373633653363 | ||
6261613461386232316362653266623863313634393466366234 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<aaaUser pwdLifeTime="no-password-expire" phone="703-467-5304" name="netdeploy" lastName="KING" firstName="JOEL" | ||
expires="no" expiration="never" email="[email protected]" dn="uni/userext/user-netdeploy" | ||
pwd="WWTwwt1!" | ||
descr="Account for PS ACI Deployment Engineer training class" clearPwdHistory="no" accountStatus="active"> | ||
<aaaUserDomain ownerTag="" ownerKey="" name="all" descr=""> | ||
<aaaUserRole ownerTag="" ownerKey="" name="admin" descr="" privType="writePriv"/> | ||
</aaaUserDomain> | ||
</aaaUser> |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
language: python | ||
python: "2.7" | ||
|
||
# Use the new container infrastructure | ||
sudo: false | ||
|
||
# Install ansible | ||
addons: | ||
apt: | ||
packages: | ||
- python-pip | ||
|
||
install: | ||
# Install ansible | ||
- pip install ansible | ||
|
||
# Check ansible version | ||
- ansible --version | ||
|
||
# Create ansible.cfg with correct roles_path | ||
- printf '[defaults]\nroles_path=../' >ansible.cfg | ||
|
||
script: | ||
# Basic role syntax check | ||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check | ||
|
||
notifications: | ||
webhooks: https://galaxy.ansible.com/api/v1/notifications/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Role Name | ||
========= | ||
|
||
A brief description of the role goes here. | ||
|
||
Requirements | ||
------------ | ||
|
||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. | ||
|
||
Role Variables | ||
-------------- | ||
|
||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. | ||
|
||
Dependencies | ||
------------ | ||
|
||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. | ||
|
||
Example Playbook | ||
---------------- | ||
|
||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: | ||
|
||
- hosts: servers | ||
roles: | ||
- { role: username.rolename, x: 42 } | ||
|
||
License | ||
------- | ||
|
||
BSD | ||
|
||
Author Information | ||
------------------ | ||
|
||
An optional section for the role authors to include contact information, or a website (HTML is not allowed). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# defaults file for test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Template for access ports | ||
# | ||
default interface Ethernet1/6 | ||
interface Ethernet1/6 | ||
description To 5600-1 | ||
switchport | ||
switchport mode trunk | ||
no shutdown | ||
channel-group 10 force mode active | ||
interface port-channel10 | ||
description To 5600-1 | ||
vpc 10 | ||
! | ||
end | ||
# | ||
# You should uncomment the following if you want the changes to survive a reboot | ||
# | ||
# copy running-config startup-config | ||
# | ||
send * Configured by mullenma from Ansible role configure_access_ports on 2016-03-18 16:08:46 | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# | ||
# Template for access ports | ||
# | ||
default interface Ethernet1/6 | ||
interface Ethernet1/6 | ||
description To 5600-1 | ||
switchport | ||
switchport mode trunk | ||
no shutdown | ||
channel-group 10 force mode active | ||
interface port-channel10 | ||
description To 5600-1 | ||
vpc 10 | ||
! | ||
end | ||
# | ||
# You should uncomment the following if you want the changes to survive a reboot | ||
# | ||
# copy running-config startup-config | ||
# | ||
send * Configured by mullenma from Ansible role configure_access_ports on 2016-03-18 16:08:46 | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Template for access ports | ||
# | ||
default interface Ethernet1/1 | ||
interface Ethernet1/1 | ||
description To 5600-2 | ||
switchport | ||
switchport mode trunk | ||
no shutdown | ||
! | ||
end | ||
# | ||
# You should uncomment the following if you want the changes to survive a reboot | ||
# | ||
# copy running-config startup-config | ||
# | ||
send * Configured by mullenma from Ansible role configure_access_ports on 2016-03-18 16:08:46 | ||
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
# handlers file for test |
Oops, something went wrong.