> > # cobbler --version cobbler 1.4.1
build date : Fri Jan 9 12:26:23 2009 Copyright (C) 2006-2008 Red Hat, Inc. License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Michael DeHaan. > # cobbler distro report --name=Redhat4x64 blank output > # cobbler profile report --name=foo That is blank, oddly enough. > # cobbler system report --name=sapcps cobbler system report --name=sapcps system : sapcps profile : Redhat4x64-x86_64 comment : created : Wed Dec 31 16:00:00 1969 gateway : 192.168.62.40 hostname : sapcps.crm.bizsys.tmcs image : kernel options : {'ip': '192.168.62.184', 'netmask': '255.255.254.0', 'ip_address': '192.168.62.184', 'gateway': '192.168.62.40'} kernel options post : {} kickstart : <<inherit>> ks metadata : {} mgmt classes : [] modified : Wed Dec 31 16:00:00 1969 name servers : <<inherit>> netboot enabled? : True owners : ['admin'] server : <<inherit>> template files : {} virt cpus : <<inherit>> virt file size : <<inherit>> virt path : <<inherit>> virt ram : <<inherit>> virt type : <<inherit>> power type : ipmitool power address : power user : power password : power id : interface : eth0 mac address : 00:21:5E:40:9F:64 bonding : bonding_master : bonding_opts : is static? : True ip address : 192.168.62.184 subnet : 255.255.254.0 static routes : [] dns name : sapcps.crm.bizsys.tmcs dhcp tag : virt bridge : [r...@admin ~]# cobbler distro report Redhat4x64-x86_64 distro : Redhat4x64-x86_64 architecture : x86_64 breed : redhat created : Wed Mar 11 10:37:30 2009 comment : initrd : /var/www/cobbler/ks_mirror/Redhat4x64/images/pxeboot/initrd.img kernel : /var/www/cobbler/ks_mirror/Redhat4x64/images/pxeboot/vmlinuz kernel options : {} ks metadata : {'tree': 'http://@@http_server@@/cblr/links/Redhat4x64'} tree build time : Wed Dec 31 16:00:00 1969 modified : Wed Mar 11 10:37:30 2009 mgmt classes : [] os version : owners : ['admin'] post kernel options : {} redhat mgmt key : <<inherit>> template files : {} > > # cobbler profile getks --name=foo > [r...@admin ~]# cobbler profile getks --name=Redhat4x64-x86_64 #platform=x86, AMD64, or Intel EM64T # System authorization information auth --useshadow --enablemd5 # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Use text mode install text # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Use network installation url --url=http://192.168.63.57:80/cblr/links/Redhat4x64 # If any cobbler repo definitions were referenced in the kickstart profile, include them here. # Network information network --hostname=${hostname} --bootproto=static --netmask=255.255.254.0 --ip=${ip_address_eth0} --gateway=$gateway --device=eth0 --onboot=on # Reboot after installation reboot #Root password rootpw --iscrypted $1$mF86/UHC$WvcIcX2t6crBz2onWxyac. # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # System timezone timezone America/Los_Angeles # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Magically figure out how to partition this thing # partition selection %include /tmp/partinfo %pre wget "http://192.168.63.57/cblr/svc/op/trig/mode/pre/profile/Redhat4x64-x86_64" -O /dev/null # partition details calculation # Determine how many drives we have set $(list-harddrives) let numd=$#/2 d1=$1 d2=$3 # Determine architecture-specific partitioning needs EFI_PART="" PPC_PREP_PART="" BOOT_PART="" case $(uname -m) in ia64) EFI_PART="part /boot/efi --fstype vfat --size 200 --recommended" ;; ppc*) PPC_PREP_PART="part None --fstype 'PPC PReP Boot' --size 8" BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" ;; *) BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" ;; esac cat << EOF > /tmp/partinfo $EFI_PART $PPC_PREP_PART $BOOT_PART part / --fstype ext3 --size=1024 --grow --ondisk=$d1 --asprimary part swap --recommended --ondisk=$d1 --asprimary EOF %packages ntp net-snmp-utils -sendmail -bluez-libs -bluez-gnome -bluez-utils -wpa_supplicant postfix sysstat %post #hostname $hostname (redacted stuff which works ) # Unable to read /var/lib/cobbler/snippets/config_mounts ( this is expected due to config_mounts being a per-system snippit ) wget "http://192.168.63.57/cblr/svc/op/ks/profile/Redhat4x64-x86_64" -O /root/cobbler.ks wget "http://192.168.63.57/cblr/svc/op/trig/mode/post/profile/Redhat4x64-x86_64" -O /dev/null > # cat /path/to/kickstart/template/indicated/in/above/report/command.ks [r...@admin ~]# wget "http://192.168.63.57/cblr/svc/op/ks/profile/Redhat4x64-x86_64" -O - --12:14:05-- http://192.168.63.57/cblr/svc/op/ks/profile/Redhat4x64-x86_64 Connecting to 192.168.63.57:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/plain] Saving to: `STDOUT' [<=> ] 0 --.-K/s #platform=x86, AMD64, or Intel EM64T # System authorization information auth --useshadow --enablemd5 # System bootloader configuration bootloader --location=mbr # Partition clearing information clearpart --all --initlabel # Use text mode install text # Firewall configuration firewall --disabled # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Use network installation url --url=$tree # If any cobbler repo definitions were referenced in the kickstart profile, include them here. # Network information network --hostname=${hostname} --bootproto=static --netmask=255.255.254.0 --ip=${ip_address_eth0} --gateway=$gateway --device=eth0 --onboot=on # Reboot after installation reboot #Root password rootpw --iscrypted $1$mF86/UHC$WvcIcX2t6crBz2onWxyac. # SELinux configuration selinux --disabled # Do not configure the X Window System skipx # System timezone timezone America/Los_Angeles # Install OS instead of upgrade install # Clear the Master Boot Record zerombr # Magically figure out how to partition this thing # partition selection %include /tmp/partinfo %pre wget "http://192.168.63.57/cblr/svc/op/trig/mode/pre/profile/Redhat4x64-x86_64" -O /dev/null # partition details calculation # Determine how many drives we have set $(list-harddrives) let numd=$#/2 d1=$1 d2=$3 # Determine architecture-specific partitioning needs EFI_PART="" PPC_PREP_PART="" BOOT_PART="" case $(uname -m) in ia64) EFI_PART="part /boot/efi --fstype vfat --size 200 --recommended" ;; ppc*) PPC_PREP_PART="part None --fstype 'PPC PReP Boot' --size 8" BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" ;; *) BOOT_PART="part /boot --fstype ext3 --size 200 --recommended" ;; esac cat << EOF > /tmp/partinfo $EFI_PART $PPC_PREP_PART $BOOT_PART part / --fstype ext3 --size=1024 --grow --ondisk=$d1 --asprimary part swap --recommended --ondisk=$d1 --asprimary EOF %packages ntp net-snmp-utils -sendmail -bluez-libs -bluez-gnome -bluez-utils -wpa_supplicant postfix sysstat %post <snippage> # Unable to read /var/lib/cobbler/snippets/config_mounts wget "http://192.168.63.57/cblr/svc/op/ks/profile/Redhat4x64-x86_64" -O /root/cobbler.ks wget "http://192.168.63.57/cblr/svc/op/trig/mode/post/profile/Redhat4x64-x86_64" -O /dev/null [ <=> ] 7,489 --.-K/s in 0s 12:14:05 (357 MB/s) - `-' saved [7489] I also did " wget "http://192.168.63.57/cblr/svc/op/ks/system/sapcps" -O - It worked the same as above, but the config_mount snippet did work, as intended. -- Terry McIntyre UNIX for hire Software Development, Systems Administration, Security [email protected] _______________________________________________ cobbler mailing list [email protected] https://fedorahosted.org/mailman/listinfo/cobbler
