Skip to content

sirinek/puppet-lldp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

puppet-lldp

Overview

Link Layer Discovery Protocol aka LLDP is usefull to discover neighbors connected on your servers. This module will install lldptool binary to find out the name and port of the switch where your server is connected on.

Environment

  • Tested with RedHat OS family upper or equal than version 6
  • Enable LLDP feature on each switch

Usage:

If you want to deploy this feature on each server you can use facts to filter cases as follows:

if $::virtual == 'physical' and $::operatingsystem == 'CentOS' and $::operatingsystemrelease =~ /^6/ {
   include lldp
}

Ouptut Example:

switch_name_eth0 => N5K1
switch_name_eth1 => N5K2
switch_port_eth0 => Ethernet116/1/22
switch_port_eth1 => Ethernet117/1/22

About

Set up and configure LLDP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 43.7%
  • Puppet 41.2%
  • Shell 15.1%