Merge "Modify default lldp system description"

This commit is contained in:
Zuul 2018-10-17 14:11:31 +00:00 committed by Gerrit Code Review
commit e721b39b09
4 changed files with 22 additions and 2 deletions

View File

@ -1,6 +1,7 @@
class platform::lldp::params(
$tx_interval = 30,
$tx_hold = 4,
$options = []
) {}
@ -19,6 +20,13 @@ class platform::lldp
notify => Service['lldpd'],
}
file { "/etc/default/lldpd":
ensure => 'present',
replace => true,
content => template('platform/lldpd.default.erb'),
notify => Service['lldpd'],
}
service { 'lldpd':
ensure => 'running',
enable => true,

View File

@ -1,5 +1,4 @@
configure system hostname '<%= @hostname %>:<%= @system %>'
configure system description 'Titanium Cloud version <%= @version %>'
configure lldp tx-interval <%= @tx_interval %>
configure lldp tx-hold <%= @tx_hold %>
configure system interface pattern *,!br*,!ovs*,!tap*

View File

@ -0,0 +1,6 @@
DAEMON_ARGS=<%- @options.each do |option| -%>
<%= option['option'] -%>
<%- if option.has_key? 'arguments' -%>
<%= option['arguments'] -%>
<%- end -%>
<%- end -%>

View File

@ -395,6 +395,13 @@ class OVSPuppet(base.BasePuppet):
driver_list = self.context['_lldp_drivers']
driver_list.append('ovs')
lldpd_options = []
# Disable broadcasting the kernel version
lldpd_kernel_option = {"option": "-k"}
lldpd_options.append(lldpd_kernel_option)
return {
'sysinv::agent::lldp_drivers': driver_list
'sysinv::agent::lldp_drivers': driver_list,
'platform::lldp::params::options': lldpd_options
}