Setting txqueuelen in Puppet

185 views
Skip to first unread message

Sid

unread,
Dec 9, 2010, 5:02:19 PM12/9/10
to Puppet Users
Hi,

We would like to set the txqueuelen on an ethernet interface in a
Linux box using Puppet. Has anyone done this before?

Sid

Daniel Pittman

unread,
Dec 9, 2010, 5:56:02 PM12/9/10
to puppet...@googlegroups.com
On Fri, Dec 10, 2010 at 09:02, Sid <sids...@gmail.com> wrote:

> We would like to set the txqueuelen on an ethernet interface in a
> Linux box using Puppet. Has anyone done this before?

No, though I have done other similar level things. I would very
strongly advice that you use the network tools supplied with the OS,
and only ship their configuration through puppet to make them do this.
(eg: on Debian, in the /etc/network/interfaces file)

That way you will not, for example, have the tx queue the wrong size
at reboot until your first puppet run. :)

Regards,
Daniel
--
✣ Daniel Pittman            ✉ dan...@rimspace.net            ☎ +61 401 155 707
              ♽ made with 100 percent post-consumer electrons

Spenser Gilliland

unread,
Dec 9, 2010, 6:13:13 PM12/9/10
to puppet...@googlegroups.com
On Debian an example /etc/network/interfaces stanza would be.

auto eth0
iface eth0 inet static
address 192.168.2.0
netmask 255.255.255.0
gateway 192.168.2.1
post-up ifconfig $IFACE txqueuelen <size>

You will want to have a file resource for the /etc/network/interfaces
file and you will want to notify the networking service on changes.
(OS will not read this file unless you ifup and ifdown the interface,
thats why the networking service must be restarted.)

Spenser

> --
> You received this message because you are subscribed to the Google Groups "Puppet Users" group.
> To post to this group, send email to puppet...@googlegroups.com.
> To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
>
>

--
Spenser Gilliland
Computer Engineer
Illinois Institute of Technology

Reply all
Reply to author
Forward
0 new messages