Gitlab Community Edition Instance

Skip to content
Snippets Groups Projects
Commit 862e3c97 authored by Benedikt Wegmann's avatar Benedikt Wegmann
Browse files

weitere Korrekturen mit puppet-lint

parent 6383fe2b
No related branches found
No related tags found
No related merge requests found
# Ring-Parameter für gültige Interfaces ändern
# Set ring parameterd for interface
class ubuntu_server::ethtool_setup{
define ring_parameters($if=$title) {
exec{$if:
path => $::path,
command => "ethtool -G ${if} rx 1024 tx 1024",
onlyif => "bash -c 'if [ $(ethtool -g ${if} 2>/dev/null | grep -c 1024) -ne 2 ] && ethtool -g ${if} 2>/dev/null ; then true; else false; fi'",
}
}
$interface_names = split($::interfaces, ',')
ring_parameters{$interface_names: }
ubuntu_server::ring_parameters{$interface_names: }
}
# define ring parameter type for interfaces
define ubuntu_server::ring_parameters($if=$title) {
exec{$if:
path => $::path,
command => "ethtool -G ${if} rx 1024 tx 1024",
onlyif => "bash -c 'if [ $(ethtool -g ${if} 2>/dev/null | grep -c 1024) -ne 2 ] && ethtool -g ${if} 2>/dev/null ; then true; else false; fi'",
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment