Installation of cobbler for automated deployment

Source: Internet
Author: User
Tags key string


Cobbler, as a bulk deployment tool for physical machine operating systems, is widely used to implement fully automated deployments from system installation to configuration with virtually no interference, and he uses DNSMASQ as an internal DHCP and DNS server. It is possible to customize its snippets script for more complex installation configuration operations. And he supports the Web UI for configuration. Its core components include:

Distros: Defining Linux distributions

Profiles: Installs a combination configuration file that allows you to deploy Linux servers with different features through the combination of the first two and different kickstart or seed files.

System: Specifies the installation options for a specific machine, such as specifying host name, IP, DNS, and so on.

This experiment mainly deploys the installation cobbler program on CENTOS7, the deployment specific operating system is introduced later.

Installing Cobbler

    1. Install cobbler with Yum to perform "required Epel source" on Cobbler-server:

      1. Yum Install httpd cobbler cobbler-web Pykickstart xinetd
    2. Start related services

      1. Systemctl enable httpd Systemctl enable Cobblerdsystemctl enable Dnsmasqsystemctl enable Rsyncdsystemctl start Httpdsyste Mctl start Cobblerdsystemctl start dnsmasqsystemctl start rsyncdsystemctl start xined

Configure Cobbler

  1. Configure a random key with 4-bit pseudo-random number (this step can be omitted)

    1. OpenSSL passwd-1-salt $ (OpenSSL Rand-hex 4)
  2. Modify the Cobbler configuration file/etc/cobbler/settings to confirm the values configured as follows

    1. next_server: Manage_dhcp:1 Manage dns:1 manage_tftpd:1 manage Rsync:1 Pxe_just_noce: 1default_password_crypted: [Source Fill in the key string generated above]
  3. Configure Enable TFTP service

    1. #sed –I '/disable/c\\tdisable\t\t\t= no '/etc/xinted.d/tftp
  4. Modify/etc/cobbler/dnsmasq.template to configure DNSMASQ information

    1. dhcp-range=, "Define client DHCP range" Dhcp-ignore=tag:!known dhcp-ignore= #knowndhcp-option=3, "Fill in the IP of the gateway"
  5. Modifying the/etc/cobbler/modules.conf configuration file

    1. [DNS] module = MANAGE_DNSMASQ [DHCP] module = MANAGE_DNSMASQ
  6. Download the PXE boot menu "Downloading pxelinux.0 files from the Internet, before you can run the next cobbler check check"

    #cobbler get-loaders

  7. Restart related services

    1. Systemctl Restart Cobblerdsystemctl Restart RSYNCD systemctl Restart xinetd
  8. Check the Cobbler configuration

    1. #cobbler Check "Most error options can be ignored, such as power management, etc."
  9. Sync data, need sync every time you make a cobbler configuration change

    1. #cobbler Sync

At this point Cobbler Basic program has been installed, can be used. But all at the command line, the Web UI configuration is introduced at work.

web Authentication login Settings

    1. Edit/etc/cobbler/modules.conf and modify the following:

      1.  module = authn_configfile  "This is the authentication file for user authentication, and of course other ways such as  pam,ldap " 
    2. Generate user authentication file  

      1. htdigest  /etc/cobbler/users.digest   "Cobbler"   cobbler   "User name and password are cobbler" 
    3. Add the newly created cobbler user to the Admin group, edit/etc/cobbler/ Users.conf, modified as follows:

      1. admin = " Cobbler "
    4. Restart the Cobbler service and then access through HTTPS in the browser 

Cobbler installation is complete, followed by cobbler automated installation of CENTOS7 and UBUNTU14

This article is from the "Ovation" blog, make sure to keep this source

Installation of cobbler for automated deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.