Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Mar 20, 2016
0 parents commit 222fea8
Show file tree
Hide file tree
Showing 208 changed files with 7,509 additions and 0 deletions.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions configure_access_ports.retry
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
7 changes: 7 additions & 0 deletions configure_access_ports.yml
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}

3 changes: 3 additions & 0 deletions evpn_add_tenant.retry
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
6 changes: 6 additions & 0 deletions evpn_add_tenant.yml
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}
3 changes: 3 additions & 0 deletions evpn_add_vlan.retry
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
6 changes: 6 additions & 0 deletions evpn_add_vlan.yml
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}
39 changes: 39 additions & 0 deletions evpn_all_in_one.yml
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}



1 change: 1 addition & 0 deletions evpn_build_leaf.retry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.255.139.146
12 changes: 12 additions & 0 deletions evpn_build_leaf.yml
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}
1 change: 1 addition & 0 deletions evpn_build_spine.retry
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10.255.139.146
6 changes: 6 additions & 0 deletions evpn_build_spine.yml
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 added evpn_config_template.xlsx
Binary file not shown.
6 changes: 6 additions & 0 deletions evpn_delete_tenant.yml
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}
6 changes: 6 additions & 0 deletions evpn_delete_vlan.yml
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}
12 changes: 12 additions & 0 deletions evpn_teardown.yml
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}
3 changes: 3 additions & 0 deletions playbooks/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
ansible.cfg
hosts
*.retry
23 changes: 23 additions & 0 deletions playbooks/add_netdeploy.yml
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}}"
7 changes: 7 additions & 0 deletions playbooks/passwords.yml
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
9 changes: 9 additions & 0 deletions playbooks/xml/aaaUser_netdeploy.xml
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 added roles/.DS_Store
Binary file not shown.
Binary file added roles/configure_access_ports/.DS_Store
Binary file not shown.
29 changes: 29 additions & 0 deletions roles/configure_access_ports/.travis.yml
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/
38 changes: 38 additions & 0 deletions roles/configure_access_ports/README.md
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).
2 changes: 2 additions & 0 deletions roles/configure_access_ports/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# defaults file for test
22 changes: 22 additions & 0 deletions roles/configure_access_ports/files/__Leaf-1_access.cfg
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
#
22 changes: 22 additions & 0 deletions roles/configure_access_ports/files/__Leaf-2_access.cfg
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
#
18 changes: 18 additions & 0 deletions roles/configure_access_ports/files/__Leaf-3_access.cfg
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
#
2 changes: 2 additions & 0 deletions roles/configure_access_ports/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
# handlers file for test
Loading

0 comments on commit 222fea8

Please sign in to comment.