aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Thibodeau <kyron@neuralbs.com>2008-08-15 00:08:13 -0400
committerEric Thibodeau <kyron@neuralbs.com>2008-08-15 00:08:13 -0400
commitd5cf5fea422afaf2a853d2a8b9de45e0bfb2eb4f (patch)
tree204bb292b6a42661419ad7e606262177c7e2c180 /overlay
parentSwitch to a more recent snapshot (20080806) (diff)
downloadclustering-livecd-d5cf5fea422afaf2a853d2a8b9de45e0bfb2eb4f.tar.gz
clustering-livecd-d5cf5fea422afaf2a853d2a8b9de45e0bfb2eb4f.tar.bz2
clustering-livecd-d5cf5fea422afaf2a853d2a8b9de45e0bfb2eb4f.zip
Adding provision for using template files instead of explicitely defining them in the beowulf-head ebuild
- We can't use this approach for the mooment since the files need to be accessible from the livecd at configuration time and the portage tree isn't in the livecd...
Diffstat (limited to 'overlay')
-rw-r--r--overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf49
1 files changed, 49 insertions, 0 deletions
diff --git a/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf b/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf
new file mode 100644
index 0000000..fa3f257
--- /dev/null
+++ b/overlay/sys-cluster/beowulf-head/files/dnsmasq-2.4-conf
@@ -0,0 +1,49 @@
+# For the sake of non-duplication of documentation, please view the dnsmasq manpage for a description of these options.
+# Public interface
+except-interface=%%PUBETH
+
+# We are the authoritative DHCP server for this network
+dhcp-authoritative
+
+# Set up the local-only domain
+local=/%%LOCALDOMAINNAME/127.0.0.1
+domain=%%LOCALDOMAINNAME
+expand-hosts
+
+# We need the following to retain dhcp served resolution info:
+resolv-file=/etc/dnsmasq-resolv.conf
+
+# Some netiquette:
+domain-needed
+bogus-priv
+
+enable-tftp
+tftp-root=%%TFTPROOT
+
+# Send RFC-3397 DNS domain search DHCP option. WARNING: Your DHCP client
+# probably doesn't support this...... (option 119)
+dhcp-option=119,%%LOCALDOMAINNAME
+# Domain DNS name
+dhcp-option=15,%%LOCALDOMAINNAME
+
+# set the master node as the NTP server
+dhcp-option=option:ntp-server,0.0.0.0
+
+### Node definitions, this could be in a separate file
+# Turn on the DHCP server, pass out addresses from %%IPSTART to %%IPSTOP
+# with subnet mask of %%SUBNET with a 12-hour lease
+dhcp-range=nodes,%%IPSTART,%%IPSTOP,%%SUBNET,12h
+
+# Override the default route supplied by dnsmasq, which assumes the
+# router is the same machine as the one running dnsmasq.
+dhcp-option=3,%%CLUSTER_ETH_IP
+
+# This tells the clients the hostname and IP of the TFTP server
+dhcp-boot=%%PXELINUX,%%HOSTNAME,%%CLUSTER_ETH_IP
+
+# address and root path of NFS server
+dhcp-option=17,%%CLUSTER_ETH_IP:%%NFSROOT
+
+# The default is 150, which is quite low if one wants a cluster with more than 150 nodes.
+dhcp-lease-max=%%NODECOUNT
+