=head1 NAME cobbler is a command line tool for configuring a provisioning server. It supports provisioning via PXE, Xen, and re-provisioning an existing Linux system ("auto-kickstarting"). The latter two features are enabled by usage of 'koan' (a client side provisioning application) on the remote system. =head1 SYNOPSIS cobbler command [subcommand] [--arg1=] [--arg2=] =head1 DESCRIPTION Cobbler manages provisioning using a tiered concept of Distributions, Profiles, and Systems. Distributions contain information about what kernel and initrd are used, along with various other information, such as required kernel parameters. Profiles associate a Distribution with a kickstart file and optionally customize it further. Systems associate a hostname, IP, or MAC with a distribution and optionally customize the Profile further. =head1 ACTIONS =head2 SETUP Running "cobbler check" after installation will verify that the prerequisites are installed and configured correctly. Any problems detected should be corrected, with the potential exception of DHCP related warnings. It is especially important that the server name be accurate in cobbler.conf For PXE, if DHCP is run from the cobbler server, the dhcp configuration file should be changed as suggested. If DHCP is not run locally, the "next-server" field on the DHCP server should point to the cobbler server's IP and the filename should be set to "pxelinux.0". =head2 ADDING A DISTRIBUTION B --kernel= --initrd= [--kopts=] [--ksmeta=]> =over =over =item name a string identifying the distribution =item kernel an absolute filesystem path to a kernel image =item initrd an absolute filesystem path to a initrd image =item kopts (optional) sets kernel arguments. Example: --ksmeta="foo=bar baz=3 asdf" =item ksmeta (optional) This is an advanced feature that sets kickstart variables to substitute, thus enabling kickstart files to be treated as templates. Example: --ksmeta="foo=bar baz=3 asdf" See the section below on templating. =back =back =head2 ADDING A PROFILE B --distro= [--kickstart=] [--kopts=] [--ksmeta=] [--xen-name=] [--xen-file-size=] [--xen-ram=] =over =over Arguments are as listed for distributions, with the follwing additions... =item distro the name of a previously defined cobbler distribution =item kickstart (optional) an HTTP URL, NFS URL, or local filesystem path to a kickstart file =item xen-name (optional) (Xen-only) what the Xen domU name should start with =item xen-file-size (optional) (Xen-only) how large the disk image should be in gigabytes =item xen-ram (optional) (Xen-only) how many megabytes of RAM to consume =back =back =head2 ADDING A SYSTEM B --profile= [--kopts=] [--pxe_arch=] [--pxe_hostname=] [--ksmeta=] =over =over Adds a cobbler System to the configuration. Arguments are specified as per "profile add" with the following changes: =item name The system name must be either a currently-resolvable hostname, an IP address, or a MAC address. When defining Xen systems, using a MAC address causes the Xen MAC address to be used for creation, so that is the preferred usage. =item pxe-arch Advanced feature. Applies only if manage-dhcp is set to 1 in /var/lib/cobbler/settings and only for PXE provisioning. Setting the pxe-arch to "ia64" will use elilo.efi as the boot loader instead of "pxelinux.0". The default, "standard", uses "pxelinux.0", which does not work for IA-64 (Itanium) systems. When using this setting, be sure the "--name" given to the "system add" command is a MAC address or no per-system record in dhcpd.conf can be generated.. Example: --pxe-arch=ia64 =item pxe-hostname Advanced feature. Applies only if manage-dhcp is set to 1 in /var/lib/cobbler/settings and only for PXE provisioning. If cobbler is configured to generate the dhcpd.conf file, use this setting to pin a certain MAC address to a specific dhcp hostname. When using this setting, be sure that the "--name" given to the "system add" command is a MAC address or no per-system record in dhcpd.conf can be generated. Example: ---pxe-hostname="foo.example.com" =back =head2 DISPLAYING CONFIGURATION ENTRIES B Prints the current cobbler configuration for systems, profiles, and groups. =head2 DELETING CONFIGURATION ENTRIES B> B> B> =head2 APPLYING CONFIGURATIONS B Configurations are saved in /var/lib/cobbler. Changes made with any commands are not applied until 'cobbler sync' is run. Any errors in the configuration will be reported during the sync process. =head1 EXAMPLES =head2 BASIC WORKFLOW B B B B B B B B B =head2 XEN For Xen, be sure the distro uses a Xen kernel and initrd: B Specify reasonable values for the Xen image size (in GB) and RAM requirements: B And define systems (if desired) using MAC addresses, not IP's or hostnames: B =head1 ADVANCED TOPICS =head2 KICKSTART TEMPLATING The --ksmeta options above require more explanation. If and only if --kickstart options reference filesystem URLs, --ksmeta allows for templating of the kickstart files to achieve advanced functions. If the --ksmeta option for a profile read --ksmeta="foo=7 bar=llama", anywhere in the kickstart file where the string "TEMPLATE::bar" appeared would be replaced with the string "llama". To apply these changes, "cobbler sync" must be run to generate custom kickstarts for each profile/system. For NFS and HTTP URLs, the "--ksmeta" options will have no effect. This is a good reason to let cobbler manage your kickstart files, though the URL functionality is provided for integration with legacy infrastructure, possibly including web apps that already generate kickstarts. =head2 DHCP CONFIGURATION MANAGEMENT By default, cobbler does not touch dhcpd.conf and leaves configuration of it up to the user. If manage_dhcp is set to 1 in /var/lib/cobbler/settings, this changes, and cobbler *will* write a dhcp.conf file. The file is based on a template in /etc/cobbler/dhcpd.conf.template -- and must be user edited for the user's particular networking environment. Read the file and understand dhcpd.conf files before proceeding. If this flag is set, it enables two things: (A) relatively seamless mixing of Itanium and x86/x86_64 machines in a PXE environment (B) pinning dhcp hostnames to MAC addresses automatically. Per-system records in DHCP will only be written if the cobbler system name is a MAC address, so it's recommended that those be used if manage_dhcp is turned on. Itanium systems also need to be specified by the MAC address, and in addition need to be given the "--pxe-arch=ia64" parameter. The dhcpd.conf file will be updated each time "cobbler sync" is run. =head2 TWEAKING Enterprising users can edit the files in /var/lib/cobbler directly versus using the command line. The repair mechanism for user error here is to delete the files in /var/lib/cobbler. There are also a few configuration variables in /etc/cobbler.conf =head2 API Cobbler also makes itself available as a Python API for use by higher level management software. =head1 EXIT_STATUS cobbler's command line returns a zero for success and non-zero for failure. =head1 AUTHOR Michael DeHaan