Skip to content

Instantly share code, notes, and snippets.

@glidenote
Created March 15, 2012 06:27
Show Gist options
  • Save glidenote/2042460 to your computer and use it in GitHub Desktop.
Save glidenote/2042460 to your computer and use it in GitHub Desktop.
cobbler.diff
--- /etc/cobbler/dhcp.template.dist 2012-03-14 18:41:17.000000000 +0900
+++ /etc/cobbler/dhcp.template 2012-03-16 12:40:13.000000000 +0900
@@ -8,6 +8,8 @@
#
# ******************************************************************
+log-facility local7;
+
ddns-update-style interim;
allow booting;
@@ -16,14 +18,14 @@
ignore client-updates;
set vendorclass = option vendor-class-identifier;
-subnet 192.168.1.0 netmask 255.255.255.0 {
- option routers 192.168.1.5;
- option domain-name-servers 192.168.1.1;
+subnet 172.17.8.0 netmask 255.255.255.0 {
+ option routers 172.17.8.11;
+ option domain-name-servers 172.17.8.11;
option subnet-mask 255.255.255.0;
- range dynamic-bootp 192.168.1.100 192.168.1.254;
+ range dynamic-bootp 172.17.8.250 172.17.8.253;
filename "/pxelinux.0";
- default-lease-time 21600;
- max-lease-time 43200;
+ default-lease-time 600;
+ max-lease-time 600;
next-server $next_server;
}
@@ -33,30 +35,30 @@
## default dhcp tag in cobbler, the group block can be deleted for a
## flat configuration
# group for Cobbler DHCP tag: $dhcp_tag
-group {
- #for mac in $dhcp_tags[$dhcp_tag].keys():
- #set iface = $dhcp_tags[$dhcp_tag][$mac]
- host $iface.name {
- hardware ethernet $mac;
- #if $iface.ip_address:
- fixed-address $iface.ip_address;
- #end if
- #if $iface.hostname:
- option host-name "$iface.hostname";
- #end if
- #if $iface.subnet:
- option subnet-mask $iface.subnet;
- #end if
- #if $iface.gateway:
- option routers $iface.gateway;
- #end if
- filename "$iface.filename";
- ## Cobbler defaults to $next_server, but some users
- ## may like to use $iface.system.server for proxied setups
- next-server $next_server;
- ## next-server $iface.next_server;
- }
- #end for
-}
+# group {
+# #for mac in $dhcp_tags[$dhcp_tag].keys():
+# #set iface = $dhcp_tags[$dhcp_tag][$mac]
+# host $iface.name {
+# hardware ethernet $mac;
+# #if $iface.ip_address:
+# fixed-address $iface.ip_address;
+# #end if
+# #if $iface.hostname:
+# option host-name "$iface.hostname";
+# #end if
+# #if $iface.subnet:
+# option subnet-mask $iface.subnet;
+# #end if
+# #if $iface.gateway:
+# option routers $iface.gateway;
+# #end if
+# filename "$iface.filename";
+# ## Cobbler defaults to $next_server, but some users
+# ## may like to use $iface.system.server for proxied setups
+# next-server $next_server;
+# ## next-server $iface.next_server;
+# }
+# #end for
+# }
#end for
--- /etc/xinetd.d/rsync.dist 2012-03-15 03:13:30.000000000 +0900
+++ /etc/xinetd.d/rsync 2012-03-15 03:13:44.000000000 +0900
@@ -3,7 +3,7 @@
# allows crc checksumming etc.
service rsync
{
- disable = yes
+ disable = no
socket_type = stream
wait = no
user = root
--- settings.dist 2012-03-15 03:08:45.000000000 +0900
+++ settings 2012-03-14 18:39:53.000000000 +0900
@@ -195,7 +195,7 @@
# set to 1 to enable Cobbler's DHCP management features.
# the choice of DHCP management engine is in /etc/cobbler/modules.conf
-manage_dhcp: 0
+manage_dhcp: 1
# set to 1 to enable Cobbler's DNS management features.
# the choice of DNS mangement engine is in /etc/cobbler/modules.conf
@@ -210,7 +210,7 @@
# if using cobbler with manage_dhcp, put the IP address
# of the cobbler server here so that PXE booting guests can find it
# if you do not set this correctly, this will be manifested in TFTP open timeouts.
-next_server: 127.0.0.1
+next_server: 172.17.8.11
# settings for power management features. optional.
# see https://fedorahosted.org/cobbler/wiki/PowerManagement to learn more
@@ -322,7 +322,7 @@
# if you have a server that appears differently to different subnets
# (dual homed, etc), you need to read the --server-override section
# of the manpage for how that works.
-server: 127.0.0.1
+server: 172.17.8.11
# this is a directory of files that cobbler uses to make
# templating easier. See the Wiki for more information. Changing
--- /etc/xinetd.d/tftp.dist 2012-03-15 03:12:09.000000000 +0900
+++ /etc/xinetd.d/tftp 2012-03-15 03:12:34.000000000 +0900
@@ -11,7 +11,7 @@
user = root
server = /usr/sbin/in.tftpd
server_args = -s /tftpboot
- disable = yes
+ disable = no
per_source = 11
cps = 100 2
flags = IPv4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment