Professional Documents
Culture Documents
ArubaOS-Switch
Automation with Ansible
Tiffany Chiapuzio-Wong
Technical Marketing Engineer
Wired Intelligent Edge TME Team
Agenda
– Introduction to Ansible
– Ansible and Aruba Modules
– Requirements
– Installation
– Getting Started with Ansible (Demo)
– How to Write and Execute Playbooks
– Ansible AWX (Demo)
– Support Updates
– Q&A
2
Why Invest in Network Automation?
Automation increases efficiency and delivery.
I don’t need automation; we’ve been configuring With network topologies becoming more and
devices for years through CLI and it’s been fine… more complex every day, it’s no longer practical
to configure hundreds of devices by hand.
There are so many different languages and Finding a successful automation solution is a
frameworks. How do I pick just one? process. Start with an investment that’s good for
your process and your people, research, and get
your hands dirty.
3
Automation Tools Used Today
4
Ansible
Introduction
5
Ansible - Overview
‒ Agentless
‒ Idempotent
“A tool that you could not use for six months, come back to, and still
remember.”
- Michael DeHaan , creator of Ansible
6
Ansible - Overview
‒ Idempotency!
7
Ansible - Overview
CLI Interface
Modules
Plugins
User
Playbook Control-Machine
(Linux)
SSH-Connection
Inventory
Target System
8
ArubaOS-Switch Modules
Available modules
Configure QoS rate on interfaces Configure/Delete QoS Policies Configure SNMP Traps
11
Ansible and Aruba Modules
Requirements & Installation
13
Ansible Requirements
‒ Control Machine
‒ Linux-based machine
‒ Windows not supported
‒ Supported Operating Systems: Red Hat Enterprise Linux 6 or
later, CentOS 6 or later, Ubuntu 12.04 LTS or later
‒ Python 2.7 or Python 3 (version 3.5 or later)
14
Installing Ansible
18
Installing ArubaOS-Switch and ArubaOS-CX Modules
19
Aruba Switching Requirements
‒ ArubaOS-Switch
‒ SWI version 16.06 or later
‒ REST enabled
switch(config)# web-management ssl
switch(config)# rest-interface
20
Getting Started with
Ansible
22
Concepts
23
Playbook Breakdown
playbook_1.yml:
24
Inventory Breakdown
25
ArubaOS-Switch Inventory File
27
ArubaOS-Switch Inventory File
/etc/ansible/hosts:
all:
hosts:
IP of host device
access_2930_44:
name of host device ansible_host: 10.6.18.44
ansible_user: admin
ansible_password: admin
static values, must always ansible_connection: local
be set ansible_network_os: arubaoss
28
Playbook Breakdown
playbook_1.yml:
31
Task Breakdown
name : describes
what is being - name: Create VLAN 300
done in the arubaoss_vlan: Module
module call vlan_id: 300
Module name: "vlan300"
Arguments command: config_vlan
config: "create"
32
Running a Playbook
Playbook Hosts
YAML File
33
Running a Playbook
34
Running a Playbook
35
Ansible Tower+AWX
36
Ansible Tower
37
Differences between Ansible Tower & AWX
38
Areas of Opportunity
39
Summary
40
Support Update Announcements
42
Thank you!
43