Code Monkey home page Code Monkey logo

ansible-network-automation-tutorial's Introduction

Ansible Network Automation Tutorial

This repository holds materials for an Ansible network automation tutorial presented at NANOG65, RIPE71, and APRICOT2017. The assumed audience for this tutorial are IP network engineers with no or minimal programming or 'DevOps' experience. The tutorial was first presented at NANOG65 on October 6th, 2015 in Montreal, Québec, Canada.

Authors

Prerequisites

For environment simplicity, we assume a stock Ubuntu LTS server installation. It is highly encouraged to run a Linux host within a virtualization setup, such as VirtualBox, VMware Fusion, or other virtualization platforms. It is possible to run Ansible under other Linux distributions or even other operating systems, such as Mac OSX, FreeBSD, and Windows 10.

Within your host OS, Python 2.7.10 or greater must be installed (the Python 3.x releases are untested) along with pip (the Python packager management tool). For instructions on how to install the correct version of python and pip, as well as running Ansible on Windows, please see the following links:

Installation

Follow the VirtualBox and Ubuntu VM installation instructions which include screenshots and descriptions for the required steps (note: the screenshots show an older Ubuntu release and slightly different git repo name, however the general directions still apply).

If you have an existing Linux environment that you're comfortable managing, the main steps are:

wget -O tutorial.tgz https://github.com/0xreid/ansible-network-automation-tutorial/archive/master.tar.gz
tar xzf tutorial.tgz
cd ansible-network-automation-tutorial-master
sudo apt-get install python-pip python-dev
sudo pip install -r requirements.txt

failure to build cryptography

If, in the pip install -r requirements.txt step, the cryptography build and subsequently the package installation fails, then you should check if all the dependencies are met. Check out this Stack Overflow post on the subject: Failed to install Python Cryptography package with PIP and setup.py

Directories

ansible101

workspace

This directory is meant to be used as a workspace to follow along with the hands-on tutorial portion of the talk. You'll be creating directories and files from scratch, as well as moving and editing existing reference files.

hello_world

Basic role to learn to generate files and print "Hello world" to a text file.

full_example

This directory contains a more complete finished example of the tutorial for reference.

ipcalc_example

This directory contains some basic examples of the ipaddr() filter in action - both IPv4 and IPv6.

ansible102

This directory contains more complex examples, geared as an Ansible 102 tutorial.

presentation

Copies of the slide deck used when the tutorial is presented at conferences.

VMinstall

Tutorial to walk through the installation of a VM for the tutorial.

ansible-network-automation-tutorial's People

Contributors

0xreid avatar dorkmatt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.