From: Stephen Gran Date: Tue, 18 Sep 2012 15:29:33 +0000 (+0100) Subject: add lldp to ynic hosts X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=344f8c0d25aa99d14c8cbe9d958c127ded4525ef;p=mirror%2Fdsa-puppet.git add lldp to ynic hosts Signed-off-by: Stephen Gran --- diff --git a/manifests/site.pp b/manifests/site.pp index 101562523..41d88df46 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 000000000..a67283df2 --- /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', + } +}