Forge Home

napalm

pdk
tasks
Collection of Puppet Tasks that use NAPALM to retrieve data and install configuration on supported networking devices.

Abir Majumdar

beersy

3,864 downloads

3,864 latest version

4.5 quality score

Version information

  • 0.1.0 (latest)
released Mar 6th 2019
This version is compatible with:
  • Puppet Enterprise 2018.1.x, 2017.3.x, 2017.2.x, 2017.1.x, 2016.5.x, 2016.4.x
  • Puppet >= 4.7.0 < 6.0.0
  • CentOS
    ,
    OracleLinux
    ,
    RedHat
    ,
    Scientific
Tasks:
  • call
  • configure
  • install_dependencies
  • validate
Plans:
  • example

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'beersy-napalm', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add beersy-napalm
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install beersy-napalm --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

beersy/napalm — version 0.1.0 Mar 6th 2019

napalm_puppet

Table of Contents

  1. Description
  2. Setup - The basics of getting started with napalm
  3. Usage - Configuration options and additional functionality
  4. Reference
  5. Release Notes

Description

This module contains tasks that wrap the Network Automation and Programmability Abstraction Layer with Multivendor (NAPALM) framework.

Setup

Setup Requirements

The target machine running the tasks needs to be a Linux machine. It needs to have the following packages installed before you can run the task:
RHEL/centos

  • epel-release
  • python
  • python-pip
  • python-devel
  • libxml2-devel
  • libxslt-devel
  • gcc
  • openssl
  • openssl-devel
  • libffi-devel

Ubuntu

  • libxslt1-dev
  • libssl-dev
  • libffi-dev
  • python-dev
  • python-cffi
  • python-pip

This module includes a install_dependencies task that will install all the above requirements for you.

Beginning with napalm

The very basic steps needed for a user to get the module up and running. This can include setup steps, if necessary, or it can be an example of the most basic use of the module.

Usage

This module contains 4 tasks:

  • install_dependencies - this will install the system depdendencies
  • call - make function calls to NAPALM
  • configure - configure network devices using a supplied config file
  • validate - validate network device configuration using a validation file

Do not run the task on the networking device itself. These tasks are meant to be run on a jump host. These tasks use virtualenv to create an isolated python environment. It will also put some files in the /tmp folder.

An example plan using all the tasks is included.

Reference

For more information about NAPALM check out their homepage or their Github repo.

Release Notes

0.1.0 Initial Release