Balance overhaul

I’m teaching myself puppet and trying to wrap a module around the TCP load balancer called “balance”. I decided to redo the init script I put together a while back and update my github repo for it. Along with the init script is a file that goes in /etc/sysconfig along with a sample config that should go in /etc/balance.d

I am using the rpm version (since puppet really seems to prefer that over source building). Check EPEL for it.

Advertisements

The new device naming convention aka eth0 is now p2p1

You may or may not have run into this yet. I’ve only seen it a few times and while I understand the reasoning behind it, it plays hell with kickstart (since you have to know the interface name and assume it’s eth0). The behavior can be disabled, apparently through a boot parameter:

biosdevname=0

I’ll test it when I run across a machine that does this to see if it can be handled gracefully in kickstart.

Kickstart without DHCP

Occasionally, you have to kickstart a host and you don’t have a DHCP server available on the network. To setup the network far enough to load a kickstart remotely (via http) change the boot configuration to:

linux text ip=192.168.1.127 netmask=255.255.255.0 gateway=192.168.1.1 dns=192.168.1.10 ks=http://192.168.1.5/kickstart/template.cfg

Alter the above to suit your environment, keeping in mind that the network specified will only be used long enough to retrieve the kickstart. Your template can redefine the values.

DHCP server configuration

This is a bare minimum guide to setup a DHCP server.

1. Install the dhcp package:

yum install dhcp

2. Replace the /etc/dhcpd.conf with the following:

ddns-update-style interim;
ignore client-updates;

subnet 192.168.1.0 netmask 255.255.255.0 {
authoritative;

option routers 192.168.1.1;
option subnet-mask 255.255.255.0;

option domain-name "domain.com";
option domain-name-servers 192.168.1.5;

option time-offset -18000; # Eastern Standard Time

range dynamic-bootp 192.168.1.32 192.168.1.47;
default-lease-time 21600;
max-lease-time 43200;
}

3. Alter the values as needed.
4. Set the server to start on boot:

/sbin/chkconfig dhcpd on

5. Start the server:

/sbin/service dhcpd start

6. Review /var/log/messages for any errors.

Make sure you have port 67/udp open if you are using a host-based firewall.