From: Stephen Gran Date: Tue, 18 Sep 2012 15:29:33 +0000 (+0100) Subject: add lldp to ynic hosts X-Git-Url: https://git.donarmstrong.com/?p=dsa-puppet.git;a=commitdiff_plain;h=344f8c0d25aa99d14c8cbe9d958c127ded4525ef add lldp to ynic hosts Signed-off-by: Stephen Gran --- diff --git a/manifests/site.pp b/manifests/site.pp index 10156252..41d88df4 100644 --- a/manifests/site.pp +++ b/manifests/site.pp @@ -117,4 +117,8 @@ node default { if $::spamd { munin::check { 'spamassassin': } } + + if $::hoster in [ynic] { + include lldp + } } diff --git a/modules/lldp/manifests/init.pp b/modules/lldp/manifests/init.pp new file mode 100644 index 00000000..a67283df --- /dev/null +++ b/modules/lldp/manifests/init.pp @@ -0,0 +1,11 @@ +class lldp { + package { 'lldpd': + ensure => installed + } + + service { 'lldpd': + ensure => running, + hasstatus => false, + pattern => '/usr/sbin/lldpd', + } +}