Code Monkey home page Code Monkey logo

slt-netdevops's Introduction

Build Status

Safari Live Training - Network DevOps

Source code for the training course. Please contact me with any questions. Before beginning, be sure you know how to use git at a basic level on your computer. I teach git in the course so if you don't know how to clone this repository yet, do not worry. For this course, only Linux platforms should be used for the Ansible control/development machine.

Contact information:
Email: [email protected]
Twitter: @nickrusso42518

Download Instructions

The easiest way to consume this code is to clone it using SSH or HTTPS.

SSH: git clone [email protected]:nickrusso42518/slt-netdevops

or

HTTPS: git clone https://github.com/nickrusso42518/slt-netdevops

After cloning, you should see the following file system structure:

$ tree --charset=ascii
.
|-- ansible.cfg
|-- hosts.yml
|-- LICENSE
|-- ntp_config.yml
|-- README.md
|-- requirements.txt
|-- requirements.yml
`-- test.yml

Ensure you have Python 3.6 or newer installed along with pip. Feel free to use Python virtualenv if you'd like to test multiple versions.

Visit https://www.python.org/downloads/ to download Python.

sudo python -m ensurepip

or

sudo easy_install pip

You can install the required packages (really just Ansible and a YAML linter) using the following command:

pip install -r requirements.txt

You should have access to the ansible command on the correct version.

$ ansible --version
ansible 2.10.11
  config file = /home/ec2-user/slt-netdevops/ansible.cfg
  configured module search path = ['/home/ec2-user/.ansible/plugins/modules',
    '/usr/share/ansible/plugins/modules']
  ansible python module location =
    /home/ec2-user/environments/val/lib/python3.7/site-packages/ansible
  executable location = /home/ec2-user/environments/val/bin/ansible
  python version = 3.7.3 (default, Aug 27 2019, 16:56:53)
    [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

Lab Setup

If you decide to actively follow along during the course, I recommend that you deploy (2) Virtual Cisco IOS or IOS-XE devices. You can use CSR1000v virtual routers in the cloud, CSR1000v VMware virtual machines via .ova files, simulated environments via EVE-NG, GNS3, or CML, or perhaps even a real hardware. The only prior configuration that these devices require is a privilege 15 username and SSH access. So long as your Ansible control machine can SSH into these devices, you can follow along with course. For continuous integration to work, these network devices need to be accessible over the Internet. For that reason, I recommend using public clouds such as AWS, Azure, or GCP.

Usage

This repository is kept minimal since the main point of this course is teaching the fundamentals of Network DevOps, not Ansible as a specific tool.

  • To edit NTP server variables, open hosts.yml and update the ntp_server variables using valid IPv4 addresses.
  • To run the playbook, run ansible-playbook ntp_config.yml from the shell.
  • To test the playbook, run ansible-playbook test.yml from the shell. This mimics what Travis CI does each time code is committed to Github.

slt-netdevops's People

Contributors

nickrusso42518 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.