Difference between revisions of "Cobbler"

From Atomicorp Wiki
Jump to: navigation, search
(Quickstart)
(Quickstart)
 
(2 intermediate revisions by one user not shown)
Line 7: Line 7:
 
== Quickstart ==
 
== Quickstart ==
 
Install dhcpd and cobbler
 
Install dhcpd and cobbler
   yum install dhcp cobbler cman
+
   yum install dhcp cobbler cman syslinux
  
 
basic checks
 
basic checks
Line 47: Line 47:
 
   ignore client-updates;
 
   ignore client-updates;
 
   subnet 10.10.14.0 netmask 255.255.255.0 {
 
   subnet 10.10.14.0 netmask 255.255.255.0 {
authoritative;
+
  authoritative;
option routers 10.10.14.1;
+
    option routers 10.10.14.1;
option subnet-mask 255.255.255.0;
+
    option subnet-mask 255.255.255.0;
option domain-name "int.progllc.com";
+
    option domain-name "int.progllc.com";
option domain-name-servers 10.10.14.1;
+
    option domain-name-servers 10.10.14.1;
option time-offset -18000; # Eastern Standard Time
+
    option time-offset -18000; # Eastern Standard Time
option ntp-servers 10.10.14.1;
+
    option ntp-servers 10.10.14.1;
range 10.10.14.200 10.10.14.250;
+
    range 10.10.14.200 10.10.14.250;
default-lease-time 21600;
+
    default-lease-time 21600;
max-lease-time 43200;
+
    max-lease-time 43200;
 
   }
 
   }
  
 +
Sync the configs (this creates the dhcp.conf used next)
 +
  cobbler sync
  
 
start dhcpd
 
start dhcpd

Latest revision as of 10:18, 1 February 2009

[edit] Overview

Cobbler, is a PXE based provisioning system developed by fedora, and is powered by awesome.


[edit] Quickstart

Install dhcpd and cobbler

 yum install dhcp cobbler cman syslinux

basic checks

 cobbler check


edit configs

vim /etc/cobbler/settings

 default_password_crypted: <change to something else>
 manage_dhcp: 1
 next_server: 10.10.14.9
 register_new_installs: 1
 server: 10.10.14.9
 

vim /etc/cobbler/modules.conf

 [authentication]
 module = authn_configfile
 
 [authorization]
 module = authz_allowall


Enable TFTP

 setup
   system services 
     toggle tftp

Clear firewall rules

 /etc/init.d/iptables stop


Do your default dhcpd config

vim /etc/cobbler/dhcp.template

 ddns-update-style none;
 ignore client-updates;
 subnet 10.10.14.0 netmask 255.255.255.0 {
 authoritative;
   option routers			10.10.14.1;
   option subnet-mask		255.255.255.0;
   option domain-name		"int.progllc.com";
   option domain-name-servers	10.10.14.1;
   option time-offset		-18000;	# Eastern Standard Time
   option ntp-servers		10.10.14.1;
   range 10.10.14.200 10.10.14.250;
   default-lease-time 21600;
   max-lease-time 43200;
 }

Sync the configs (this creates the dhcp.conf used next)

 cobbler sync

start dhcpd

 /etc/init.d/dhcpd start

start cobbler

 /etc/init.d/cobblerd start

Add repos, Grab DVD iso and mount via -o loop somewhere

 cobbler import --name=CentOS-5.2-i386 --path=/root/ISO/1

Access the web page, set up your systems, and test it

 http://10.10.14.200/cobbler/web/
Personal tools