Version information
Start using this module
Add this module to your Puppetfile:
mod 'csail-lldp', '0.0.3'
Learn more about managing modules with a PuppetfileDocumentation
lldp
This module supports either of two LLDP daemons: OpenLLDP and luffy.cx's LLDP. The latter is superior and should be used wherever it is available. Currently only Debian (lldpd) and FreeBSD (OpenLLDP) are supported, but adding other systems should be trivial (all we need to know is the correct service and package name).
It also defines custom facts based on the LLDP neighbors of the client. These are primarily intended for storing in PuppetDB, but may also be used in manifests. Be aware, however, that LLDP information may expire on the client in the course of normal operation, so decisions should not be made on the basis of the absence of LLDP data. The particular facts defined depend on the LLDP implementation; lldpd provides a greater variety of information than OpenLLDP does. Both implementations will provide switch MAC address (chassis_mac), name, and port description (port_desc) when these variables are provided by the link partner. The fact lldp_neighbors is a comma-separated list of integers (since Puppet lacks a for loop) representing the index assigned to each LLDP neighbor; if the client has more than one interface (or more than one neighbor on a single interface), they will be numbered in an unpredictable order.
A virtual monit::monitor (tag => default) is set up for lldpd; because OpenLLDP does not write a pidfile, we can't use monit::monitor for it. This assumes that you have our version of the monit module, or else that you realize virtual monit::monitor resources in some other way. (We believe that it should be the monit module's responsibility to do this.)
N.B.: On FreeBSD, a pkgng package provider is required.
License
See the file LICENSE.
Contact
Support
None.
Copyright 2012 Massachusetts Institute of Technology Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that both the above copyright notice and this permission notice appear in all copies, that both the above copyright notice and this permission notice appear in all supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission. M.I.T. makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty. THIS SOFTWARE IS PROVIDED BY M.I.T. ``AS IS''. M.I.T. DISCLAIMS ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL M.I.T. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.