Cobbler Deployment Guide-Cobbler operating system installation

Source: Internet
Author: User
Cobbler Deployment Guide-Cobbler installation operating system VI. yum repository configuration management

6.1 First import the system Image

Refer to step 4. import the system image. after importing the image, perform the following steps:

6.2 add an image

Base and updates databases use the 163 repo source and add the EPEL Library

Base

Cobbler repo add -- name = CentOS 5.8-x86_64-Base -- mirror = http://mirrors.163.com/centos/5/ OS /x86_64/

Modify the name Base of the defined warehouse in upper case to lower case base.

Cobbler repo edit -- name = centos5.8-x86_64-base -- mirror = http://mirrors.163.com/centos/5/ OS /x86_64/ -- arch = x86_64 -- breed = yum

Updates

Cobbler repo add -- name = centos5.8-x86_64-updates -- mirror = http://mirrors.163.com/centos/5/updates/x86_64/ -- arch = x86_64 -- breed = yum

Add an EPEL repository

Cobbler repo add -- name = centos5.8-x86_64-epel -- mirror = http://mirrors.ustc.edu.cn/epel/5/x86_64/ -- arch = x86_64 -- breed = yum

6.3 synchronize the yum repository content to the local device

It takes a long time to check whether the disk capacity is sufficient.

Cobbler reposync

Task started: 2013-03-26_111553_reposync

Task started (id = Reposync, time = Tue Mar 26 11:15:53 2013)

Hello, reposync

Run, reposync, run!

Creating:/var/www/cobbler/repo_mirror/centos5.8-x86_64-updates/. origin/centos5.8-x86_64-updates.repo

Running:/usr/bin/reposync-l-m-d -- config =/var/www/cobbler/repo_mirror/centos5.8-x86_64-updates /. origin/centos5.8-x86_64-updates.repo -- repoid = centos5.8-x86_64-updates -- download_path =/var/www/cobbler/repo_mirror-a x86_64

.................. ..............................

Received on stdout:

Received on stderr:

* ** Task complete ***

[Nextpgae]

6.4 add repo to profle,

The repository configuration is automatically added when the system is installed.


Cobbler profile edit -- name = feature-x86_64 -- repos = "centos5.8-x86_64-base centos5.8-x86_64-epel starter-x86_64-updates" -- distro = centos5.8-x86_64 -- kickstart =/var/lib/cobbler/kickstarts centos5u8-x64.cfg

6.4 delete repository configuration

Cobbler repo remove -- name = centos5.8-x86_64-updates

6.5 add an update warehouse source scheduled task

Cobbler reposync -- tries = 3 -- no-fail


Update crontab once every Sunday.

Echo "0 2 ** 0 cobbler reposync -- tries = 3 -- no-fail">/var/spool/cron/root


Check whether crond is started.

/Etc/init. d/crond status

Crond is stopped

/Etc/init. d/crond start

Starting crond: [OK]

Chkconfig crond on

6.6 Automatic yum configuration

If you want to automatically configure yum when installing the system, perform the following configuration.

Vim/etc/cobbler/settings

Yum_post_install_mirror: 1

Add the following content to the ks file of the installation script:

% Post

# Start yum configuration

$ Yum_config_stanza

# End yum configuration


The following parameter PXE will reference the cobbler repo configuration you added.

Note that systems and applications may be deployed to newer versions and configured as needed

$ Yum_repo_stanza

Both parameters come from Kickstart snippets and are worth studying https://github.com/cobbler/cobbler/wiki/Kickstart-snippets.


The system installs the automatically configured yum

Cat/etc/yum. repos. d/cobbler-config.repo

[Core-0]

Name = core-0

Baseurl = http: // 172.17.10.14/cobbler/ks_mirror/centos5.8-x86_64

Enabled = 1

Gpgcheck = 0

Priority = 1



[Centos5.8-x86_64-base]

Name = centos5.8-x86_64-base

Baseurl = http: // 172.17.10.14/cobbler/repo_mirror/centos5.8-x86_64-base

Enabled = 1

Priority = 99

Gpgcheck = 0



[Centos5.8-x86_64-epel]

Name = centos5.8-x86_64-epel

Baseurl = http: // 172.17.10.14/cobbler/repo_mirror/centos5.8-x86_64-epel

Enabled = 1

Priority = 99

Gpgcheck = 0



[Centos5.8-x86_64-updates]

Name = centos5.8-x86_64-updates

Baseurl = http: // 172.17.10.14/cobbler/repo_mirror/centos5.8-x86_64-updates

Enabled = 1

Priority = 99

Gpgcheck = 0

Related Article

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: info-contact@alibabacloud.com 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.