Cobbler相关网站:
Fedora项目网站:https://fedorahosted.org/cobbler/
Github项目网站:http://cobbler.github.io/
官方,快速指南:
http://cobbler.github.io/manuals/quickstart/
——————————
一、安装Cobbler
前提,开始本文前,你需要有一个安装好了的CentOS7的系统。
默认配置:
关闭SELINUX:
[root@center-linux ~]# sestatus SELinux status: disabled [root@center-linux ~]# [root@center-linux ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - No SELinux policy is loaded. #SELINUX=enforcing # changed,2017-01-18,adamhuan SELINUX=disabled # SELINUXTYPE= can take one of three two values: # targeted - Targeted processes are protected, # minimum - Modification of targeted policy. Only selected processes are protected. # mls - Multi Level Security protection. SELINUXTYPE=targeted [root@center-linux ~]#
关闭防火墙:
[root@center-linux ~]# systemctl disable firewalld [root@center-linux ~]# systemctl stop firewalld [root@center-linux ~]# [root@center-linux ~]# systemctl status firewalld ● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled) Active: inactive (dead) [root@center-linux ~]#
设置YUM保存下载的RPM包:
[root@center-linux ~]# cat /etc/yum.conf [main] cachedir=/var/cache/yum/$basearch/$releasever keepcache=1 debuglevel=2 logfile=/var/log/yum.log exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 installonly_limit=5 bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum distroverpkg=centos-release # This is the default, if you make this bigger yum won't see if the metadata # is newer on the remote and so you'll "gain" the bandwidth of not having to # download the new metadata and "pay" for it by yum not having correct # information. # It is esp. important, to have correct metadata, for distributions like # Fedora which don't keep old packages around. If you don't like this checking # interupting your command line usage, it's much better to have something # manually check the metadata once an hour (yum-updatesd will do this). # metadata_expire=90m # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d [root@center-linux ~]#
配置EPEL:
[root@center-linux ~]# cd /software [root@center-linux software]# wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm --2017-01-18 14:42:26-- http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Resolving dl.fedoraproject.org (dl.fedoraproject.org)... 209.132.181.24, 209.132.181.27, 209.132.181.23, ... Connecting to dl.fedoraproject.org (dl.fedoraproject.org)|209.132.181.24|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 14704 (14K) [application/x-rpm] Saving to: ‘epel-release-latest-7.noarch.rpm’ 100%[===========================================================================>] 14,704 11.0KB/s in 1.3s 2017-01-18 14:42:33 (11.0 KB/s) - ‘epel-release-latest-7.noarch.rpm’ saved [14704/14704] [root@center-linux software]# [root@center-linux software]# rpm -ivh epel-release-latest-7.noarch.rpm warning: epel-release-latest-7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Preparing... ################################# [100%] Updating / installing... 1:epel-release-7-9 ################################# [100%] [root@center-linux software]# [root@center-linux software]# yum makecache Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 epel/x86_64/metalink | 4.3 kB 00:00:00 epel | 4.3 kB 00:00:00 extras | 3.4 kB 00:00:00 gitlab-ce | 2.9 kB 00:00:00 Not using downloaded repomd.xml because it is older than what we have: Current : Wed Jan 18 01:04:10 2017 Downloaded: Tue Jan 17 16:01:47 2017 gitlab_gitlab-ee/x86_64/signature | 836 B 00:00:00 gitlab_gitlab-ee/x86_64/signature | 1.0 kB 00:00:00 !!! gitlab_gitlab-ee-source/signature | 836 B 00:00:00 gitlab_gitlab-ee-source/signature | 951 B 00:00:00 !!! home_libertas-ict_cobbler28 | 1.2 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/5): epel/x86_64/group_gz | 170 kB 00:00:05 (2/5): epel/x86_64/filelists_db | 7.5 MB 00:00:00 (3/5): epel/x86_64/updateinfo | 723 kB 00:00:00 (4/5): epel/x86_64/primary_db | 4.5 MB 00:00:00 (5/5): epel/x86_64/other_db | 2.0 MB 00:00:00 Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.163.com * updates: centos.ustc.edu.cn Metadata Cache Created [root@center-linux software]#
停掉:NetworkManager
[root@center-linux software]# service NetworkManager status Redirecting to /bin/systemctl status NetworkManager.service ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; vendor preset: enabled) Active: active (running) since Wed 2017-01-18 13:45:27 CST; 1h 33min ago Main PID: 878 (NetworkManager) CGroup: /system.slice/NetworkManager.service └─878 /usr/sbin/NetworkManager --no-daemon Jan 18 13:45:27 center-linux NetworkManager[878]: (eno16777728): device state change: secondaries -> act...0 0] Jan 18 13:45:27 center-linux NetworkManager[878]: NetworkManager state is now CONNECTED_LOCAL Jan 18 13:45:27 center-linux NetworkManager[878]: NetworkManager state is now CONNECTED_GLOBAL Jan 18 13:45:27 center-linux NetworkManager[878]: Policy set 'eno16777728' (eno16777728) as default for ...DNS. Jan 18 13:45:27 center-linux NetworkManager[878]: (eno16777728): Activation: successful, device activated. Jan 18 13:45:33 center-linux NetworkManager[878]: startup complete Jan 18 13:45:33 center-linux NetworkManager[878]: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...d... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...d... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...ete. Hint: Some lines were ellipsized, use -l to show in full. [root@center-linux software]# [root@center-linux software]# service NetworkManager stop Redirecting to /bin/systemctl stop NetworkManager.service [root@center-linux software]# [root@center-linux software]# systemctl disable NetworkManager Removed symlink /etc/systemd/system/multi-user.target.wants/NetworkManager.service. Removed symlink /etc/systemd/system/dbus-org.freedesktop.NetworkManager.service. Removed symlink /etc/systemd/system/dbus-org.freedesktop.nm-dispatcher.service. [root@center-linux software]# [root@center-linux software]# systemctl status NetworkManager ● NetworkManager.service - Network Manager Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled) Active: inactive (dead) since Wed 2017-01-18 15:19:23 CST; 1min 9s ago Main PID: 878 (code=exited, status=0/SUCCESS) Jan 18 13:45:27 center-linux NetworkManager[878]: (eno16777728): Activation: successful, device activated. Jan 18 13:45:33 center-linux NetworkManager[878]: startup complete Jan 18 13:45:33 center-linux NetworkManager[878]: parsing /etc/sysconfig/network-scripts/ifcfg-lo ... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...d... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...d... Jan 18 13:45:59 center-linux NetworkManager[878]: (eno16777728): Activation: Stage 4 of 5 (IPv6 Configur...ete. Jan 18 15:19:23 center-linux NetworkManager[878]: caught signal 15, shutting down normally. Jan 18 15:19:23 center-linux systemd[1]: Stopping Network Manager... Jan 18 15:19:23 center-linux NetworkManager[878]: exiting (success) Jan 18 15:19:23 center-linux systemd[1]: Stopped Network Manager. Hint: Some lines were ellipsized, use -l to show in full. [root@center-linux software]#
配置Cobbler的YUM文件:
可以从官网获得:
http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler28/CentOS_7/home:libertas-ict:cobbler28.repo
[root@center-linux ~]# ls -ltr /etc/yum.repos.d/ total 36 -rw-r--r--. 1 root root 1002 Apr 1 2015 CentOS-Vault.repo -rw-r--r--. 1 root root 1331 Apr 1 2015 CentOS-Sources.repo -rw-r--r--. 1 root root 290 Apr 1 2015 CentOS-fasttrack.repo -rw-r--r--. 1 root root 649 Apr 1 2015 CentOS-Debuginfo.repo -rw-r--r--. 1 root root 1309 Apr 1 2015 CentOS-CR.repo -rw-r--r--. 1 root root 1664 Apr 1 2015 CentOS-Base.repo -rw-r--r--. 1 root root 571 Jan 11 10:59 gitlab_gitlab-ee.repo -rw-r--r--. 1 root root 169 Jan 11 11:00 gitlab_gitlab-ce.repo -rw-r--r-- 1 root root 298 Jan 18 14:31 cobbler_28.repo [root@center-linux ~]# [root@center-linux ~]# cat /etc/yum.repos.d/cobbler_28.repo [home_libertas-ict_cobbler28] name=Cobbler (2.8.x) (CentOS_7) type=rpm-md baseurl=http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler28/CentOS_7/ gpgcheck=1 gpgkey=http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler28/CentOS_7//repodata/repomd.xml.key enabled=1 [root@center-linux ~]#
然后,生成YUM缓存,并查看一下:
[root@center-linux ~]# yum makecache Loaded plugins: fastestmirror, langpacks base | 3.6 kB 00:00:00 extras | 3.4 kB 00:00:00 gitlab-ce | 2.9 kB 00:00:00 gitlab_gitlab-ee/x86_64/signature | 836 B 00:00:00 gitlab_gitlab-ee/x86_64/signature | 1.0 kB 00:00:00 !!! gitlab_gitlab-ee-source/signature | 836 B 00:00:00 gitlab_gitlab-ee-source/signature | 951 B 00:00:00 !!! home_libertas-ict_cobbler28 | 1.2 kB 00:00:00 updates | 3.4 kB 00:00:00 (1/5): home_libertas-ict_cobbler28/filelists | 3.9 kB 00:00:06 (2/5): home_libertas-ict_cobbler28/primary | 2.2 kB 00:00:06 (3/5): home_libertas-ict_cobbler28/other | 711 B 00:00:00 (4/5): gitlab-ce/primary_db | 1.2 MB 00:00:06 (5/5): gitlab-ce/filelists_db | 91 MB 00:00:16 Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * extras: mirrors.163.com * updates: centos.ustc.edu.cn home_libertas-ict_cobbler28 4/4 home_libertas-ict_cobbler28 4/4 home_libertas-ict_cobbler28 4/4 Metadata Cache Created [root@center-linux ~]# [root@center-linux ~]# yum list | grep --color cobbler cobbler.noarch 2.8.0-12.1 home_libertas-ict_cobbler28 cobbler-web.noarch 2.8.0-12.1 home_libertas-ict_cobbler28 koan.noarch 2.8.0-12.1 home_libertas-ict_cobbler28 [root@center-linux ~]# yum list | grep --color koan koan.noarch 2.8.0-12.1 home_libertas-ict_cobbler28 [root@center-linux ~]#
开始安装:
yum install cobbler*
[root@center-linux software]# yum install cobbler Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.163.com * updates: centos.ustc.edu.cn Resolving Dependencies --> Running transaction check ---> Package cobbler.noarch 0:2.8.0-12.1 will be installed --> Processing Dependency: python-simplejson for package: cobbler-2.8.0-12.1.noarch --> Processing Dependency: httpd for package: cobbler-2.8.0-12.1.noarch --> Processing Dependency: syslinux for package: cobbler-2.8.0-12.1.noarch --> Processing Dependency: python-cheetah for package: cobbler-2.8.0-12.1.noarch --> Processing Dependency: mod_wsgi for package: cobbler-2.8.0-12.1.noarch --> Processing Dependency: PyYAML for package: cobbler-2.8.0-12.1.noarch --> Running transaction check ---> Package PyYAML.x86_64 0:3.10-11.el7 will be installed --> Processing Dependency: libyaml-0.so.2()(64bit) for package: PyYAML-3.10-11.el7.x86_64 ---> Package httpd.x86_64 0:2.4.6-45.el7.centos will be installed --> Processing Dependency: httpd-tools = 2.4.6-45.el7.centos for package: httpd-2.4.6-45.el7.centos.x86_64 --> Processing Dependency: /etc/mime.types for package: httpd-2.4.6-45.el7.centos.x86_64 ---> Package mod_wsgi.x86_64 0:3.4-12.el7_0 will be installed ---> Package python-cheetah.x86_64 0:2.4.4-5.el7.centos will be installed --> Processing Dependency: python-pygments for package: python-cheetah-2.4.4-5.el7.centos.x86_64 --> Processing Dependency: python-markdown for package: python-cheetah-2.4.4-5.el7.centos.x86_64 ---> Package python2-simplejson.x86_64 0:3.10.0-1.el7 will be installed ---> Package syslinux.x86_64 0:4.05-13.el7 will be installed --> Running transaction check ---> Package httpd-tools.x86_64 0:2.4.6-45.el7.centos will be installed ---> Package libyaml.x86_64 0:0.1.4-11.el7_0 will be installed ---> Package mailcap.noarch 0:2.1.41-2.el7 will be installed ---> Package python-markdown.noarch 0:2.4.1-1.el7.centos will be installed ---> Package python-pygments.noarch 0:1.4-9.el7 will be installed --> Processing Dependency: python-imaging for package: python-pygments-1.4-9.el7.noarch --> Running transaction check ---> Package python-pillow.x86_64 0:2.0.0-19.gitd1c6db8.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================= Package Arch Version Repository Size ======================================================================================================================= Installing: cobbler noarch 2.8.0-12.1 home_libertas-ict_cobbler28 483 k Installing for dependencies: PyYAML x86_64 3.10-11.el7 base 153 k httpd x86_64 2.4.6-45.el7.centos base 2.7 M httpd-tools x86_64 2.4.6-45.el7.centos base 84 k libyaml x86_64 0.1.4-11.el7_0 base 55 k mailcap noarch 2.1.41-2.el7 base 31 k mod_wsgi x86_64 3.4-12.el7_0 base 76 k python-cheetah x86_64 2.4.4-5.el7.centos extras 341 k python-markdown noarch 2.4.1-1.el7.centos extras 186 k python-pillow x86_64 2.0.0-19.gitd1c6db8.el7 base 438 k python-pygments noarch 1.4-9.el7 base 599 k python2-simplejson x86_64 3.10.0-1.el7 epel 188 k syslinux x86_64 4.05-13.el7 base 989 k Transaction Summary ======================================================================================================================= Install 1 Package (+12 Dependent packages) Total download size: 6.2 M Installed size: 23 M Is this ok [y/d/N]: y Downloading packages: (1/13): httpd-tools-2.4.6-45.el7.centos.x86_64.rpm | 84 kB 00:00:05 (2/13): PyYAML-3.10-11.el7.x86_64.rpm | 153 kB 00:00:05 (3/13): mod_wsgi-3.4-12.el7_0.x86_64.rpm | 76 kB 00:00:00 (4/13): python-cheetah-2.4.4-5.el7.centos.x86_64.rpm | 341 kB 00:00:00 (5/13): python-markdown-2.4.1-1.el7.centos.noarch.rpm | 186 kB 00:00:00 (6/13): libyaml-0.1.4-11.el7_0.x86_64.rpm | 55 kB 00:00:05 (7/13): python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64.rpm | 438 kB 00:00:00 (8/13): python-pygments-1.4-9.el7.noarch.rpm | 599 kB 00:00:00 (9/13): syslinux-4.05-13.el7.x86_64.rpm | 989 kB 00:00:00 (10/13): httpd-2.4.6-45.el7.centos.x86_64.rpm | 2.7 MB 00:00:06 warning: /var/cache/yum/x86_64/7/epel/packages/python2-simplejson-3.10.0-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY Public key for python2-simplejson-3.10.0-1.el7.x86_64.rpm is not installed (11/13): python2-simplejson-3.10.0-1.el7.x86_64.rpm | 188 kB 00:00:06 warning: /var/cache/yum/x86_64/7/home_libertas-ict_cobbler28/packages/cobbler-2.8.0-12.1.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 2589a1ed: NOKEY Public key for cobbler-2.8.0-12.1.noarch.rpm is not installed (12/13): cobbler-2.8.0-12.1.noarch.rpm | 483 kB 00:00:30 mailcap-2.1.41-2.el7.noarch.rp FAILED =====-] 4.2 kB/s | 6.2 MB 00:00:05 ETA http://mirrors.zju.edu.cn/centos/7.3.1611/os/x86_64/Packages/mailcap-2.1.41-2.el7.noarch.rpm: [Errno 12] Timeout on http://mirrors.zju.edu.cn/centos/7.3.1611/os/x86_64/Packages/mailcap-2.1.41-2.el7.noarch.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. mailcap-2.1.41-2.el7.noarch.rp FAILED http://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/os/x86_64/Packages/mailcap-2.1.41-2.el7.noarch.rpm: [Errno 12] Timeout on http://mirrors.tuna.tsinghua.edu.cn/centos/7.3.1611/os/x86_64/Packages/mailcap-2.1.41-2.el7.noarch.rpm: (28, 'Operation too slow. Less than 1000 bytes/sec transferred the last 30 seconds') Trying other mirror. (13/13): mailcap-2.1.41-2.el7.noarch.rpm | 31 kB 00:00:05 ----------------------------------------------------------------------------------------------------------------------- Total 78 kB/s | 6.2 MB 00:01:22 Retrieving key from http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler28/CentOS_7//repodata/repomd.xml.key Importing GPG key 0x2589A1ED: Userid : "home:libertas-ict OBS Project " Fingerprint: bf39 752d 4a25 6a7b 1d6d e5ed 82e9 c422 2589 a1ed From : http://download.opensuse.org/repositories/home:/libertas-ict:/cobbler28/CentOS_7//repodata/repomd.xml.key Is this ok [y/N]: y Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Importing GPG key 0x352C64E5: Userid : "Fedora EPEL (7) " Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5 Package : epel-release-7-9.noarch (installed) From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 Is this ok [y/N]: y Running transaction check Running transaction test Transaction test succeeded Running transaction Warning: RPMDB altered outside of yum. Installing : mailcap-2.1.41-2.el7.noarch 1/13 Installing : httpd-tools-2.4.6-45.el7.centos.x86_64 2/13 Installing : httpd-2.4.6-45.el7.centos.x86_64 3/13 Installing : mod_wsgi-3.4-12.el7_0.x86_64 4/13 Installing : python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 5/13 Installing : python-pygments-1.4-9.el7.noarch 6/13 Installing : syslinux-4.05-13.el7.x86_64 7/13 Installing : python2-simplejson-3.10.0-1.el7.x86_64 8/13 Installing : python-markdown-2.4.1-1.el7.centos.noarch 9/13 Installing : python-cheetah-2.4.4-5.el7.centos.x86_64 10/13 Installing : libyaml-0.1.4-11.el7_0.x86_64 11/13 Installing : PyYAML-3.10-11.el7.x86_64 12/13 Installing : cobbler-2.8.0-12.1.noarch 13/13 Verifying : libyaml-0.1.4-11.el7_0.x86_64 1/13 Verifying : cobbler-2.8.0-12.1.noarch 2/13 Verifying : python-markdown-2.4.1-1.el7.centos.noarch 3/13 Verifying : python-cheetah-2.4.4-5.el7.centos.x86_64 4/13 Verifying : python2-simplejson-3.10.0-1.el7.x86_64 5/13 Verifying : mod_wsgi-3.4-12.el7_0.x86_64 6/13 Verifying : syslinux-4.05-13.el7.x86_64 7/13 Verifying : python-pillow-2.0.0-19.gitd1c6db8.el7.x86_64 8/13 Verifying : PyYAML-3.10-11.el7.x86_64 9/13 Verifying : httpd-tools-2.4.6-45.el7.centos.x86_64 10/13 Verifying : mailcap-2.1.41-2.el7.noarch 11/13 Verifying : python-pygments-1.4-9.el7.noarch 12/13 Verifying : httpd-2.4.6-45.el7.centos.x86_64 13/13 Installed: cobbler.noarch 0:2.8.0-12.1 Dependency Installed: PyYAML.x86_64 0:3.10-11.el7 httpd.x86_64 0:2.4.6-45.el7.centos httpd-tools.x86_64 0:2.4.6-45.el7.centos libyaml.x86_64 0:0.1.4-11.el7_0 mailcap.noarch 0:2.1.41-2.el7 mod_wsgi.x86_64 0:3.4-12.el7_0 python-cheetah.x86_64 0:2.4.4-5.el7.centos python-markdown.noarch 0:2.4.1-1.el7.centos python-pillow.x86_64 0:2.0.0-19.gitd1c6db8.el7 python-pygments.noarch 0:1.4-9.el7 python2-simplejson.x86_64 0:3.10.0-1.el7 syslinux.x86_64 0:4.05-13.el7 Complete! [root@center-linux software]# [root@center-linux software]# yum install cobbler-web Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.tuna.tsinghua.edu.cn * extras: mirrors.163.com * updates: centos.ustc.edu.cn Package cobbler-2.8.0-12.1.noarch already installed and latest version Resolving Dependencies --> Running transaction check ---> Package cobbler-web.noarch 0:2.8.0-12.1 will be installed --> Processing Dependency: Django >= 1.4 for package: cobbler-web-2.8.0-12.1.noarch --> Running transaction check ---> Package python-django.noarch 0:1.6.11-5.el7 will be installed --> Processing Dependency: python-django-bash-completion = 1.6.11-5.el7 for package: python-django-1.6.11-5.el7.noarch --> Running transaction check ---> Package python-django-bash-completion.noarch 0:1.6.11-5.el7 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================================================= Package Arch Version Repository Size ======================================================================================================================= Installing: cobbler-web noarch 2.8.0-12.1 home_libertas-ict_cobbler28 198 k Installing for dependencies: python-django noarch 1.6.11-5.el7 epel 4.0 M python-django-bash-completion noarch 1.6.11-5.el7 epel 16 k Transaction Summary ======================================================================================================================= Install 1 Package (+2 Dependent packages) Total download size: 4.2 M Installed size: 16 M Is this ok [y/d/N]: y Downloading packages: (1/3): python-django-1.6.11-5.el7.noarch.rpm | 4.0 MB 00:00:08 (2/3): python-django-bash-completion-1.6.11-5.el7.noarch.rpm | 16 kB 00:00:00 (3/3): cobbler-web-2.8.0-12.1.noarch.rpm | 198 kB 00:00:31 ----------------------------------------------------------------------------------------------------------------------- Total 134 kB/s | 4.2 MB 00:00:31 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : python-django-bash-completion-1.6.11-5.el7.noarch 1/3 Installing : python-django-1.6.11-5.el7.noarch 2/3 Installing : cobbler-web-2.8.0-12.1.noarch 3/3 Verifying : python-django-1.6.11-5.el7.noarch 1/3 Verifying : python-django-bash-completion-1.6.11-5.el7.noarch 2/3 Verifying : cobbler-web-2.8.0-12.1.noarch 3/3 Installed: cobbler-web.noarch 0:2.8.0-12.1 Dependency Installed: python-django.noarch 0:1.6.11-5.el7 python-django-bash-completion.noarch 0:1.6.11-5.el7 Complete! [root@center-linux software]#
这样,安装就结束了。
看看分别安装了什么:
cobbler
[root@center-linux software]# rpm -ql cobbler /etc/cobbler /etc/cobbler/auth.conf /etc/cobbler/cheetah_macros /etc/cobbler/cobbler_bash /etc/cobbler/completions /etc/cobbler/dhcp.template /etc/cobbler/dnsmasq.template /etc/cobbler/import_rsync_whitelist /etc/cobbler/iso /etc/cobbler/iso/buildiso.template /etc/cobbler/ldap /etc/cobbler/ldap/ldap_authconfig.template /etc/cobbler/modules.conf /etc/cobbler/mongodb.conf /etc/cobbler/named.template /etc/cobbler/power /etc/cobbler/power/fence_apc_snmp.template /etc/cobbler/power/fence_bladecenter.template /etc/cobbler/power/fence_bullpap.template /etc/cobbler/power/fence_drac.template /etc/cobbler/power/fence_ilo.template /etc/cobbler/power/fence_ipmilan.template /etc/cobbler/power/fence_lpar.template /etc/cobbler/power/fence_rsa.template /etc/cobbler/power/fence_virsh.template /etc/cobbler/power/fence_wti.template /etc/cobbler/pxe /etc/cobbler/pxe/bootcfg_esxi5.template /etc/cobbler/pxe/bootcfg_esxi51.template /etc/cobbler/pxe/bootcfg_esxi55.template /etc/cobbler/pxe/bootcfg_esxi60.template /etc/cobbler/pxe/efidefault.template /etc/cobbler/pxe/gpxe_system_esxi5.template /etc/cobbler/pxe/gpxe_system_esxi6.template /etc/cobbler/pxe/gpxe_system_freebsd.template /etc/cobbler/pxe/gpxe_system_linux.template /etc/cobbler/pxe/gpxe_system_local.template /etc/cobbler/pxe/gpxe_system_windows.template /etc/cobbler/pxe/grublocal.template /etc/cobbler/pxe/grubprofile.template /etc/cobbler/pxe/grubsystem.template /etc/cobbler/pxe/nexenta_grub_menu.template /etc/cobbler/pxe/nexenta_profile.template /etc/cobbler/pxe/pxedefault.template /etc/cobbler/pxe/pxelocal.template /etc/cobbler/pxe/pxelocal_ia64.template /etc/cobbler/pxe/pxelocal_ppc64le.template /etc/cobbler/pxe/pxelocal_s390x.template /etc/cobbler/pxe/pxeprofile.template /etc/cobbler/pxe/pxeprofile_arm.template /etc/cobbler/pxe/pxeprofile_esxi.template /etc/cobbler/pxe/pxeprofile_ppc64le.template /etc/cobbler/pxe/pxeprofile_s390x.template /etc/cobbler/pxe/pxesystem.template /etc/cobbler/pxe/pxesystem_arm.template /etc/cobbler/pxe/pxesystem_esxi.template /etc/cobbler/pxe/pxesystem_ia64.template /etc/cobbler/pxe/pxesystem_ppc.template /etc/cobbler/pxe/pxesystem_ppc64le.template /etc/cobbler/pxe/pxesystem_s390x.template /etc/cobbler/pxe/s390x_conf.template /etc/cobbler/pxe/s390x_parm.template /etc/cobbler/reporting /etc/cobbler/reporting/build_report_email.template /etc/cobbler/rsync.exclude /etc/cobbler/rsync.template /etc/cobbler/secondary.template /etc/cobbler/settings /etc/cobbler/tftpd.template /etc/cobbler/users.conf /etc/cobbler/users.digest /etc/cobbler/version /etc/cobbler/zone.template /etc/cobbler/zone_templates /etc/httpd /etc/httpd/conf.d /etc/httpd/conf.d/cobbler.conf /etc/logrotate.d/cobblerd /usr/bin/cobbler /usr/bin/cobbler-ext-nodes /usr/bin/cobblerd /usr/lib/python2.7/site-packages/cobbler /usr/lib/python2.7/site-packages/cobbler-2.8.0-py2.7.egg-info /usr/lib/python2.7/site-packages/cobbler/__init__.py /usr/lib/python2.7/site-packages/cobbler/__init__.pyc /usr/lib/python2.7/site-packages/cobbler/__init__.pyo /usr/lib/python2.7/site-packages/cobbler/action_acl.py /usr/lib/python2.7/site-packages/cobbler/action_acl.pyc /usr/lib/python2.7/site-packages/cobbler/action_acl.pyo /usr/lib/python2.7/site-packages/cobbler/action_buildiso.py /usr/lib/python2.7/site-packages/cobbler/action_buildiso.pyc /usr/lib/python2.7/site-packages/cobbler/action_buildiso.pyo /usr/lib/python2.7/site-packages/cobbler/action_check.py /usr/lib/python2.7/site-packages/cobbler/action_check.pyc /usr/lib/python2.7/site-packages/cobbler/action_check.pyo /usr/lib/python2.7/site-packages/cobbler/action_dlcontent.py /usr/lib/python2.7/site-packages/cobbler/action_dlcontent.pyc /usr/lib/python2.7/site-packages/cobbler/action_dlcontent.pyo /usr/lib/python2.7/site-packages/cobbler/action_hardlink.py /usr/lib/python2.7/site-packages/cobbler/action_hardlink.pyc /usr/lib/python2.7/site-packages/cobbler/action_hardlink.pyo /usr/lib/python2.7/site-packages/cobbler/action_litesync.py /usr/lib/python2.7/site-packages/cobbler/action_litesync.pyc /usr/lib/python2.7/site-packages/cobbler/action_litesync.pyo /usr/lib/python2.7/site-packages/cobbler/action_log.py /usr/lib/python2.7/site-packages/cobbler/action_log.pyc /usr/lib/python2.7/site-packages/cobbler/action_log.pyo /usr/lib/python2.7/site-packages/cobbler/action_power.py /usr/lib/python2.7/site-packages/cobbler/action_power.pyc /usr/lib/python2.7/site-packages/cobbler/action_power.pyo /usr/lib/python2.7/site-packages/cobbler/action_replicate.py /usr/lib/python2.7/site-packages/cobbler/action_replicate.pyc /usr/lib/python2.7/site-packages/cobbler/action_replicate.pyo /usr/lib/python2.7/site-packages/cobbler/action_report.py /usr/lib/python2.7/site-packages/cobbler/action_report.pyc /usr/lib/python2.7/site-packages/cobbler/action_report.pyo /usr/lib/python2.7/site-packages/cobbler/action_reposync.py /usr/lib/python2.7/site-packages/cobbler/action_reposync.pyc /usr/lib/python2.7/site-packages/cobbler/action_reposync.pyo /usr/lib/python2.7/site-packages/cobbler/action_status.py /usr/lib/python2.7/site-packages/cobbler/action_status.pyc /usr/lib/python2.7/site-packages/cobbler/action_status.pyo /usr/lib/python2.7/site-packages/cobbler/action_sync.py /usr/lib/python2.7/site-packages/cobbler/action_sync.pyc /usr/lib/python2.7/site-packages/cobbler/action_sync.pyo /usr/lib/python2.7/site-packages/cobbler/action_validate.py /usr/lib/python2.7/site-packages/cobbler/action_validate.pyc /usr/lib/python2.7/site-packages/cobbler/action_validate.pyo /usr/lib/python2.7/site-packages/cobbler/api.py /usr/lib/python2.7/site-packages/cobbler/api.pyc /usr/lib/python2.7/site-packages/cobbler/api.pyo /usr/lib/python2.7/site-packages/cobbler/cexceptions.py /usr/lib/python2.7/site-packages/cobbler/cexceptions.pyc /usr/lib/python2.7/site-packages/cobbler/cexceptions.pyo /usr/lib/python2.7/site-packages/cobbler/cli.py /usr/lib/python2.7/site-packages/cobbler/cli.pyc /usr/lib/python2.7/site-packages/cobbler/cli.pyo /usr/lib/python2.7/site-packages/cobbler/clogger.py /usr/lib/python2.7/site-packages/cobbler/clogger.pyc /usr/lib/python2.7/site-packages/cobbler/clogger.pyo /usr/lib/python2.7/site-packages/cobbler/cobblerd.py /usr/lib/python2.7/site-packages/cobbler/cobblerd.pyc /usr/lib/python2.7/site-packages/cobbler/cobblerd.pyo /usr/lib/python2.7/site-packages/cobbler/codes.py /usr/lib/python2.7/site-packages/cobbler/codes.pyc /usr/lib/python2.7/site-packages/cobbler/codes.pyo /usr/lib/python2.7/site-packages/cobbler/collection.py /usr/lib/python2.7/site-packages/cobbler/collection.pyc /usr/lib/python2.7/site-packages/cobbler/collection.pyo /usr/lib/python2.7/site-packages/cobbler/collection_distros.py /usr/lib/python2.7/site-packages/cobbler/collection_distros.pyc /usr/lib/python2.7/site-packages/cobbler/collection_distros.pyo /usr/lib/python2.7/site-packages/cobbler/collection_files.py /usr/lib/python2.7/site-packages/cobbler/collection_files.pyc /usr/lib/python2.7/site-packages/cobbler/collection_files.pyo /usr/lib/python2.7/site-packages/cobbler/collection_images.py /usr/lib/python2.7/site-packages/cobbler/collection_images.pyc /usr/lib/python2.7/site-packages/cobbler/collection_images.pyo /usr/lib/python2.7/site-packages/cobbler/collection_mgmtclasses.py /usr/lib/python2.7/site-packages/cobbler/collection_mgmtclasses.pyc /usr/lib/python2.7/site-packages/cobbler/collection_mgmtclasses.pyo /usr/lib/python2.7/site-packages/cobbler/collection_packages.py /usr/lib/python2.7/site-packages/cobbler/collection_packages.pyc /usr/lib/python2.7/site-packages/cobbler/collection_packages.pyo /usr/lib/python2.7/site-packages/cobbler/collection_profiles.py /usr/lib/python2.7/site-packages/cobbler/collection_profiles.pyc /usr/lib/python2.7/site-packages/cobbler/collection_profiles.pyo /usr/lib/python2.7/site-packages/cobbler/collection_repos.py /usr/lib/python2.7/site-packages/cobbler/collection_repos.pyc /usr/lib/python2.7/site-packages/cobbler/collection_repos.pyo /usr/lib/python2.7/site-packages/cobbler/collection_systems.py /usr/lib/python2.7/site-packages/cobbler/collection_systems.pyc /usr/lib/python2.7/site-packages/cobbler/collection_systems.pyo /usr/lib/python2.7/site-packages/cobbler/config.py /usr/lib/python2.7/site-packages/cobbler/config.pyc /usr/lib/python2.7/site-packages/cobbler/config.pyo /usr/lib/python2.7/site-packages/cobbler/configgen.py /usr/lib/python2.7/site-packages/cobbler/configgen.pyc /usr/lib/python2.7/site-packages/cobbler/configgen.pyo /usr/lib/python2.7/site-packages/cobbler/couch.py /usr/lib/python2.7/site-packages/cobbler/couch.pyc /usr/lib/python2.7/site-packages/cobbler/couch.pyo /usr/lib/python2.7/site-packages/cobbler/field_info.py /usr/lib/python2.7/site-packages/cobbler/field_info.pyc /usr/lib/python2.7/site-packages/cobbler/field_info.pyo /usr/lib/python2.7/site-packages/cobbler/item.py /usr/lib/python2.7/site-packages/cobbler/item.pyc /usr/lib/python2.7/site-packages/cobbler/item.pyo /usr/lib/python2.7/site-packages/cobbler/item_distro.py /usr/lib/python2.7/site-packages/cobbler/item_distro.pyc /usr/lib/python2.7/site-packages/cobbler/item_distro.pyo /usr/lib/python2.7/site-packages/cobbler/item_file.py /usr/lib/python2.7/site-packages/cobbler/item_file.pyc /usr/lib/python2.7/site-packages/cobbler/item_file.pyo /usr/lib/python2.7/site-packages/cobbler/item_image.py /usr/lib/python2.7/site-packages/cobbler/item_image.pyc /usr/lib/python2.7/site-packages/cobbler/item_image.pyo /usr/lib/python2.7/site-packages/cobbler/item_mgmtclass.py /usr/lib/python2.7/site-packages/cobbler/item_mgmtclass.pyc /usr/lib/python2.7/site-packages/cobbler/item_mgmtclass.pyo /usr/lib/python2.7/site-packages/cobbler/item_package.py /usr/lib/python2.7/site-packages/cobbler/item_package.pyc /usr/lib/python2.7/site-packages/cobbler/item_package.pyo /usr/lib/python2.7/site-packages/cobbler/item_profile.py /usr/lib/python2.7/site-packages/cobbler/item_profile.pyc /usr/lib/python2.7/site-packages/cobbler/item_profile.pyo /usr/lib/python2.7/site-packages/cobbler/item_repo.py /usr/lib/python2.7/site-packages/cobbler/item_repo.pyc /usr/lib/python2.7/site-packages/cobbler/item_repo.pyo /usr/lib/python2.7/site-packages/cobbler/item_system.py /usr/lib/python2.7/site-packages/cobbler/item_system.pyc /usr/lib/python2.7/site-packages/cobbler/item_system.pyo /usr/lib/python2.7/site-packages/cobbler/kickgen.py /usr/lib/python2.7/site-packages/cobbler/kickgen.pyc /usr/lib/python2.7/site-packages/cobbler/kickgen.pyo /usr/lib/python2.7/site-packages/cobbler/module_loader.py /usr/lib/python2.7/site-packages/cobbler/module_loader.pyc /usr/lib/python2.7/site-packages/cobbler/module_loader.pyo /usr/lib/python2.7/site-packages/cobbler/modules /usr/lib/python2.7/site-packages/cobbler/modules/__init__.py /usr/lib/python2.7/site-packages/cobbler/modules/__init__.pyc /usr/lib/python2.7/site-packages/cobbler/modules/__init__.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_configfile.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_configfile.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_configfile.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_denyall.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_denyall.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_denyall.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_ldap.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_ldap.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_ldap.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_pam.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_pam.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_pam.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_passthru.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_passthru.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_passthru.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_spacewalk.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_spacewalk.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_spacewalk.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authn_testing.py /usr/lib/python2.7/site-packages/cobbler/modules/authn_testing.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authn_testing.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authz_allowall.py /usr/lib/python2.7/site-packages/cobbler/modules/authz_allowall.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authz_allowall.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authz_configfile.py /usr/lib/python2.7/site-packages/cobbler/modules/authz_configfile.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authz_configfile.pyo /usr/lib/python2.7/site-packages/cobbler/modules/authz_ownership.py /usr/lib/python2.7/site-packages/cobbler/modules/authz_ownership.pyc /usr/lib/python2.7/site-packages/cobbler/modules/authz_ownership.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_post_log.py /usr/lib/python2.7/site-packages/cobbler/modules/install_post_log.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_post_log.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_post_power.py /usr/lib/python2.7/site-packages/cobbler/modules/install_post_power.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_post_power.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_post_puppet.py /usr/lib/python2.7/site-packages/cobbler/modules/install_post_puppet.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_post_puppet.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_post_report.py /usr/lib/python2.7/site-packages/cobbler/modules/install_post_report.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_post_report.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_clear_anamon_logs.py /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_clear_anamon_logs.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_clear_anamon_logs.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_log.py /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_log.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_log.pyo /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_puppet.py /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_puppet.pyc /usr/lib/python2.7/site-packages/cobbler/modules/install_pre_puppet.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_bind.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_bind.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_bind.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_dnsmasq.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_dnsmasq.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_dnsmasq.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_import_signatures.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_import_signatures.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_import_signatures.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_in_tftpd.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_in_tftpd.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_in_tftpd.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_isc.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_isc.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_isc.pyo /usr/lib/python2.7/site-packages/cobbler/modules/manage_tftpd_py.py /usr/lib/python2.7/site-packages/cobbler/modules/manage_tftpd_py.pyc /usr/lib/python2.7/site-packages/cobbler/modules/manage_tftpd_py.pyo /usr/lib/python2.7/site-packages/cobbler/modules/scm_track.py /usr/lib/python2.7/site-packages/cobbler/modules/scm_track.pyc /usr/lib/python2.7/site-packages/cobbler/modules/scm_track.pyo /usr/lib/python2.7/site-packages/cobbler/modules/serializer_catalog.py /usr/lib/python2.7/site-packages/cobbler/modules/serializer_catalog.pyc /usr/lib/python2.7/site-packages/cobbler/modules/serializer_catalog.pyo /usr/lib/python2.7/site-packages/cobbler/modules/serializer_couch.py /usr/lib/python2.7/site-packages/cobbler/modules/serializer_couch.pyc /usr/lib/python2.7/site-packages/cobbler/modules/serializer_couch.pyo /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mongodb.py /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mongodb.pyc /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mongodb.pyo /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mysql.py /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mysql.pyc /usr/lib/python2.7/site-packages/cobbler/modules/serializer_mysql.pyo /usr/lib/python2.7/site-packages/cobbler/modules/sync_post_restart_services.py /usr/lib/python2.7/site-packages/cobbler/modules/sync_post_restart_services.pyc /usr/lib/python2.7/site-packages/cobbler/modules/sync_post_restart_services.pyo /usr/lib/python2.7/site-packages/cobbler/pxegen.py /usr/lib/python2.7/site-packages/cobbler/pxegen.pyc /usr/lib/python2.7/site-packages/cobbler/pxegen.pyo /usr/lib/python2.7/site-packages/cobbler/remote.py /usr/lib/python2.7/site-packages/cobbler/remote.pyc /usr/lib/python2.7/site-packages/cobbler/remote.pyo /usr/lib/python2.7/site-packages/cobbler/resource.py /usr/lib/python2.7/site-packages/cobbler/resource.pyc /usr/lib/python2.7/site-packages/cobbler/resource.pyo /usr/lib/python2.7/site-packages/cobbler/serializer.py /usr/lib/python2.7/site-packages/cobbler/serializer.pyc /usr/lib/python2.7/site-packages/cobbler/serializer.pyo /usr/lib/python2.7/site-packages/cobbler/services.py /usr/lib/python2.7/site-packages/cobbler/services.pyc /usr/lib/python2.7/site-packages/cobbler/services.pyo /usr/lib/python2.7/site-packages/cobbler/settings.py /usr/lib/python2.7/site-packages/cobbler/settings.pyc /usr/lib/python2.7/site-packages/cobbler/settings.pyo /usr/lib/python2.7/site-packages/cobbler/templar.py /usr/lib/python2.7/site-packages/cobbler/templar.pyc /usr/lib/python2.7/site-packages/cobbler/templar.pyo /usr/lib/python2.7/site-packages/cobbler/template_api.py /usr/lib/python2.7/site-packages/cobbler/template_api.pyc /usr/lib/python2.7/site-packages/cobbler/template_api.pyo /usr/lib/python2.7/site-packages/cobbler/utils.py /usr/lib/python2.7/site-packages/cobbler/utils.pyc /usr/lib/python2.7/site-packages/cobbler/utils.pyo /usr/lib/python2.7/site-packages/cobbler/yumgen.py /usr/lib/python2.7/site-packages/cobbler/yumgen.pyc /usr/lib/python2.7/site-packages/cobbler/yumgen.pyo /usr/lib/systemd/system/cobblerd.service /usr/sbin/tftpd.py /usr/share/cobbler /usr/share/doc/cobbler-2.8.0 /usr/share/doc/cobbler-2.8.0/AUTHORS /usr/share/doc/cobbler-2.8.0/COPYING /usr/share/doc/cobbler-2.8.0/README /usr/share/doc/cobbler-2.8.0/README.mysql /usr/share/doc/cobbler-2.8.0/README.openvz /usr/share/doc/cobbler-2.8.0/README.suse /usr/share/man/man1/cobbler.1.gz /var/lib/cobbler /var/lib/cobbler/config /var/lib/cobbler/config/distros.d /var/lib/cobbler/config/files.d /var/lib/cobbler/config/images.d /var/lib/cobbler/config/mgmtclasses.d /var/lib/cobbler/config/packages.d /var/lib/cobbler/config/profiles.d /var/lib/cobbler/config/repos.d /var/lib/cobbler/config/systems.d /var/lib/cobbler/distro_signatures.json /var/lib/cobbler/kickstarts /var/lib/cobbler/kickstarts/default.ks /var/lib/cobbler/kickstarts/esxi4-ks.cfg /var/lib/cobbler/kickstarts/esxi5-ks.cfg /var/lib/cobbler/kickstarts/install_profiles /var/lib/cobbler/kickstarts/install_profiles/README /var/lib/cobbler/kickstarts/install_profiles/machine.AA00FFCC1100-example /var/lib/cobbler/kickstarts/legacy.ks /var/lib/cobbler/kickstarts/pxerescue.ks /var/lib/cobbler/kickstarts/sample.ks /var/lib/cobbler/kickstarts/sample.seed /var/lib/cobbler/kickstarts/sample_autoyast.xml /var/lib/cobbler/kickstarts/sample_end.ks /var/lib/cobbler/kickstarts/sample_esx4.ks /var/lib/cobbler/kickstarts/sample_esxi4.ks /var/lib/cobbler/kickstarts/sample_esxi5.ks /var/lib/cobbler/kickstarts/sample_old.seed /var/lib/cobbler/loaders /var/lib/cobbler/scripts /var/lib/cobbler/scripts/preseed_early_default /var/lib/cobbler/scripts/preseed_late_default /var/lib/cobbler/snippets /var/lib/cobbler/snippets/cobbler_register /var/lib/cobbler/snippets/download_config_files /var/lib/cobbler/snippets/download_config_files_deb /var/lib/cobbler/snippets/func_install_if_enabled /var/lib/cobbler/snippets/func_register_if_enabled /var/lib/cobbler/snippets/hosts.xml /var/lib/cobbler/snippets/kdump.xml /var/lib/cobbler/snippets/keep_cfengine_keys /var/lib/cobbler/snippets/keep_files /var/lib/cobbler/snippets/keep_rhn_keys /var/lib/cobbler/snippets/keep_ssh_host_keys /var/lib/cobbler/snippets/kickstart_done /var/lib/cobbler/snippets/kickstart_start /var/lib/cobbler/snippets/koan_environment /var/lib/cobbler/snippets/late_apt_repo_config /var/lib/cobbler/snippets/log_ks_post /var/lib/cobbler/snippets/log_ks_post_nochroot /var/lib/cobbler/snippets/log_ks_pre /var/lib/cobbler/snippets/main_partition_select /var/lib/cobbler/snippets/network_config /var/lib/cobbler/snippets/network_config_esx /var/lib/cobbler/snippets/network_config_esxi /var/lib/cobbler/snippets/networking.xml /var/lib/cobbler/snippets/partition_select /var/lib/cobbler/snippets/post_anamon /var/lib/cobbler/snippets/post_install_kernel_options /var/lib/cobbler/snippets/post_install_network_config /var/lib/cobbler/snippets/post_install_network_config_deb /var/lib/cobbler/snippets/post_koan_add_reinstall_entry /var/lib/cobbler/snippets/post_run_deb /var/lib/cobbler/snippets/post_s390_reboot /var/lib/cobbler/snippets/pre_anamon /var/lib/cobbler/snippets/pre_install_network_config /var/lib/cobbler/snippets/pre_partition_select /var/lib/cobbler/snippets/preseed_apt_repo_config /var/lib/cobbler/snippets/proxy.xml /var/lib/cobbler/snippets/puppet_install_if_enabled /var/lib/cobbler/snippets/puppet_register_if_enabled /var/lib/cobbler/snippets/redhat_register /var/lib/cobbler/snippets/restore_boot_device /var/lib/cobbler/snippets/rhn_certificate_based_register /var/lib/cobbler/snippets/save_boot_device /var/lib/cobbler/snippets/suse_scriptwrapper.xml /var/lib/cobbler/triggers /var/lib/cobbler/triggers/add /var/lib/cobbler/triggers/add/distro /var/lib/cobbler/triggers/add/distro/post /var/lib/cobbler/triggers/add/distro/pre /var/lib/cobbler/triggers/add/file /var/lib/cobbler/triggers/add/file/post /var/lib/cobbler/triggers/add/file/pre /var/lib/cobbler/triggers/add/mgmtclass /var/lib/cobbler/triggers/add/mgmtclass/post /var/lib/cobbler/triggers/add/mgmtclass/pre /var/lib/cobbler/triggers/add/package /var/lib/cobbler/triggers/add/package/post /var/lib/cobbler/triggers/add/package/pre /var/lib/cobbler/triggers/add/profile /var/lib/cobbler/triggers/add/profile/post /var/lib/cobbler/triggers/add/profile/pre /var/lib/cobbler/triggers/add/repo /var/lib/cobbler/triggers/add/repo/post /var/lib/cobbler/triggers/add/repo/pre /var/lib/cobbler/triggers/add/system /var/lib/cobbler/triggers/add/system/post /var/lib/cobbler/triggers/add/system/pre /var/lib/cobbler/triggers/change /var/lib/cobbler/triggers/delete /var/lib/cobbler/triggers/delete/distro /var/lib/cobbler/triggers/delete/distro/post /var/lib/cobbler/triggers/delete/distro/pre /var/lib/cobbler/triggers/delete/file /var/lib/cobbler/triggers/delete/file/post /var/lib/cobbler/triggers/delete/file/pre /var/lib/cobbler/triggers/delete/mgmtclass /var/lib/cobbler/triggers/delete/mgmtclass/post /var/lib/cobbler/triggers/delete/mgmtclass/pre /var/lib/cobbler/triggers/delete/package /var/lib/cobbler/triggers/delete/package/post /var/lib/cobbler/triggers/delete/package/pre /var/lib/cobbler/triggers/delete/profile /var/lib/cobbler/triggers/delete/profile/post /var/lib/cobbler/triggers/delete/profile/pre /var/lib/cobbler/triggers/delete/repo /var/lib/cobbler/triggers/delete/repo/post /var/lib/cobbler/triggers/delete/repo/pre /var/lib/cobbler/triggers/delete/system /var/lib/cobbler/triggers/delete/system/post /var/lib/cobbler/triggers/delete/system/pre /var/lib/cobbler/triggers/install /var/lib/cobbler/triggers/install/firstboot /var/lib/cobbler/triggers/install/post /var/lib/cobbler/triggers/install/pre /var/lib/cobbler/triggers/sync /var/lib/cobbler/triggers/sync/post /var/lib/cobbler/triggers/sync/pre /var/lib/tftpboot /var/lib/tftpboot/images /var/log/cobbler /var/log/cobbler/anamon /var/log/cobbler/kicklog /var/log/cobbler/syslog /var/log/cobbler/tasks /var/www/cobbler /var/www/cobbler/aux /var/www/cobbler/aux/anamon /var/www/cobbler/aux/anamon.init /var/www/cobbler/images /var/www/cobbler/ks_mirror /var/www/cobbler/ks_mirror/config /var/www/cobbler/links /var/www/cobbler/localmirror /var/www/cobbler/pub /var/www/cobbler/rendered /var/www/cobbler/repo_mirror /var/www/cobbler/svc /var/www/cobbler/svc/services.py /var/www/cobbler/svc/services.pyc /var/www/cobbler/svc/services.pyo [root@center-linux software]#
cobbler-web
[root@center-linux software]# rpm -ql cobbler-web /etc/httpd /etc/httpd/conf.d /etc/httpd/conf.d/cobbler_web.conf /usr/share/cobbler/web /usr/share/cobbler/web/__init__.py /usr/share/cobbler/web/__init__.pyc /usr/share/cobbler/web/__init__.pyo /usr/share/cobbler/web/cobbler.wsgi /usr/share/cobbler/web/cobbler_web /usr/share/cobbler/web/cobbler_web/__init__.py /usr/share/cobbler/web/cobbler_web/__init__.pyc /usr/share/cobbler/web/cobbler_web/__init__.pyo /usr/share/cobbler/web/cobbler_web/templates /usr/share/cobbler/web/cobbler_web/templates/blank.tmpl /usr/share/cobbler/web/cobbler_web/templates/check.tmpl /usr/share/cobbler/web/cobbler_web/templates/empty.tmpl /usr/share/cobbler/web/cobbler_web/templates/enoaccess.tmpl /usr/share/cobbler/web/cobbler_web/templates/error_page.tmpl /usr/share/cobbler/web/cobbler_web/templates/eventlog.tmpl /usr/share/cobbler/web/cobbler_web/templates/events.tmpl /usr/share/cobbler/web/cobbler_web/templates/filter.tmpl /usr/share/cobbler/web/cobbler_web/templates/generic_edit.tmpl /usr/share/cobbler/web/cobbler_web/templates/generic_list.tmpl /usr/share/cobbler/web/cobbler_web/templates/import.tmpl /usr/share/cobbler/web/cobbler_web/templates/index.tmpl /usr/share/cobbler/web/cobbler_web/templates/item.tmpl /usr/share/cobbler/web/cobbler_web/templates/ksfile_edit.tmpl /usr/share/cobbler/web/cobbler_web/templates/ksfile_list.tmpl /usr/share/cobbler/web/cobbler_web/templates/login.tmpl /usr/share/cobbler/web/cobbler_web/templates/master.tmpl /usr/share/cobbler/web/cobbler_web/templates/paginate.tmpl /usr/share/cobbler/web/cobbler_web/templates/settings.tmpl /usr/share/cobbler/web/cobbler_web/templates/snippet_edit.tmpl /usr/share/cobbler/web/cobbler_web/templates/snippet_list.tmpl /usr/share/cobbler/web/cobbler_web/templates/task_created.tmpl /usr/share/cobbler/web/cobbler_web/templatetags /usr/share/cobbler/web/cobbler_web/templatetags/__init__.py /usr/share/cobbler/web/cobbler_web/templatetags/__init__.pyc /usr/share/cobbler/web/cobbler_web/templatetags/__init__.pyo /usr/share/cobbler/web/cobbler_web/templatetags/site.py /usr/share/cobbler/web/cobbler_web/templatetags/site.pyc /usr/share/cobbler/web/cobbler_web/templatetags/site.pyo /usr/share/cobbler/web/cobbler_web/urls.py /usr/share/cobbler/web/cobbler_web/urls.pyc /usr/share/cobbler/web/cobbler_web/urls.pyo /usr/share/cobbler/web/cobbler_web/views.py /usr/share/cobbler/web/cobbler_web/views.pyc /usr/share/cobbler/web/cobbler_web/views.pyo /usr/share/cobbler/web/manage.py /usr/share/cobbler/web/manage.pyc /usr/share/cobbler/web/manage.pyo /usr/share/cobbler/web/settings.py /usr/share/cobbler/web/settings.pyc /usr/share/cobbler/web/settings.pyo /usr/share/cobbler/web/urls.py /usr/share/cobbler/web/urls.pyc /usr/share/cobbler/web/urls.pyo /usr/share/doc/cobbler-web-2.8.0 /usr/share/doc/cobbler-web-2.8.0/AUTHORS /usr/share/doc/cobbler-web-2.8.0/COPYING /usr/share/doc/cobbler-web-2.8.0/README /var/lib/cobbler/webui_sessions /var/www/cobbler_webui_content /var/www/cobbler_webui_content/cobbler.js /var/www/cobbler_webui_content/favicon.png /var/www/cobbler_webui_content/images /var/www/cobbler_webui_content/images/ui-bg_flat_0_aaaaaa_40x100.png /var/www/cobbler_webui_content/images/ui-bg_flat_75_ffffff_40x100.png /var/www/cobbler_webui_content/images/ui-bg_glass_55_fbf9ee_1x400.png /var/www/cobbler_webui_content/images/ui-bg_glass_65_ffffff_1x400.png /var/www/cobbler_webui_content/images/ui-bg_glass_75_dadada_1x400.png /var/www/cobbler_webui_content/images/ui-bg_glass_75_e6e6e6_1x400.png /var/www/cobbler_webui_content/images/ui-bg_glass_95_fef1ec_1x400.png /var/www/cobbler_webui_content/images/ui-bg_highlight-soft_75_cccccc_1x100.png /var/www/cobbler_webui_content/images/ui-icons_222222_256x240.png /var/www/cobbler_webui_content/images/ui-icons_2e83ff_256x240.png /var/www/cobbler_webui_content/images/ui-icons_454545_256x240.png /var/www/cobbler_webui_content/images/ui-icons_888888_256x240.png /var/www/cobbler_webui_content/images/ui-icons_cd0a0a_256x240.png /var/www/cobbler_webui_content/index.html /var/www/cobbler_webui_content/jquery-ui.css /var/www/cobbler_webui_content/jquery-ui.min.js /var/www/cobbler_webui_content/jquery.min.js /var/www/cobbler_webui_content/jsGrowl.css /var/www/cobbler_webui_content/jsGrowl.js /var/www/cobbler_webui_content/jsGrowl_jquery.js /var/www/cobbler_webui_content/jsgrowl_close.png /var/www/cobbler_webui_content/jsgrowl_corners.png /var/www/cobbler_webui_content/jsgrowl_corners_hover.png /var/www/cobbler_webui_content/jsgrowl_middle_hover.png /var/www/cobbler_webui_content/jsgrowl_side_hover.png /var/www/cobbler_webui_content/logo-cobbler.png /var/www/cobbler_webui_content/style.css /var/www/cobbler_webui_content/tooltip.png [root@center-linux software]#
二、配置Cobbler
修改默认密码:
[root@center-linux software]# cat /etc/cobbler/settings | grep --color ^default_password_crypted default_password_crypted: "$1$mF86/UHC$WvcIcX2t6crBz2onWxyac." [root@center-linux software]# [root@center-linux software]# openssl passwd -1 Password: Verifying - Password: $1$7ZQvtb4B$Ch5NUHfoEEpNiyaZDck511 [root@center-linux software]# [root@center-linux software]# sed -i "/default_password_crypted/s/\$1\$mF86\/UHC\$WvcIcX2t6crBz2onWxyac./\$1\$7ZQvtb4B\$Ch5NUHfoEEpNiyaZDck511/g" /etc/cobbler/settings [root@center-linux software]# [root@center-linux software]# cat /etc/cobbler/settings | grep --color ^default_password_crypted default_password_crypted: "$1$7ZQvtb4B$Ch5NUHfoEEpNiyaZDck511" [root@center-linux software]#
修改服务器IP:
[root@center-linux software]# cat /etc/cobbler/settings | grep --color ^server server: 127.0.0.1 [root@center-linux software]# [root@center-linux software]# sed -i "/server:/s/127.0.0.1/192.168.19.137/g" /etc/cobbler/settings [root@center-linux software]# [root@center-linux software]# cat /etc/cobbler/settings | grep --color ^server server: 192.168.19.137 [root@center-linux software]#
TFTP服务器:
[root@center-linux software]# cat /etc/cobbler/settings | grep --color ^next_server next_server: 192.168.19.137 [root@center-linux software]#
DHCP:
[root@center-linux software]# cat /etc/cobbler/settings | grep --color ^manage_dhcp manage_dhcp: 0 [root@center-linux software]#
意义:
0,禁用(默认)
1,启用
这里,我们启用:
[root@center-linux software]# cat /etc/cobbler/settings | grep --color ^manage_dhcp manage_dhcp: 0 [root@center-linux software]# [root@center-linux software]# sed -i "/manage_dhcp:/s/0/1/g" /etc/cobbler/settings [root@center-linux software]# [root@center-linux software]# cat /etc/cobbler/settings | grep --color ^manage_dhcp manage_dhcp: 1 [root@center-linux software]#
配置DHCP模板:
由于我的环境中,IP为:192.168.19.X,所以,我做出如下修改:
[root@center-linux software]# sed -i "s/192.168.1/192.168.19/g" /etc/cobbler/dhcp.template [root@center-linux software]# [root@center-linux software]# cat /etc/cobbler/dhcp.template | grep "192.168.19." subnet 192.168.19.0 netmask 255.255.255.0 { option routers 192.168.19.5; option domain-name-servers 192.168.19.1; range dynamic-bootp 192.168.19.100 192.168.19.254; [root@center-linux software]#
最终,我的DHCP模板文件为:
[root@center-linux software]# cat /etc/cobbler/dhcp.template | grep -v "#" | strings ddns-update-style interim; allow booting; allow bootp; ignore client-updates; set vendorclass = option vendor-class-identifier; option pxe-system-type code 93 = unsigned integer 16; subnet 192.168.19.0 netmask 255.255.255.0 { option routers 192.168.19.2; option domain-name-servers 192.168.19.138,114.114.114.114; option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.19.12 192.168.19.135; default-lease-time 21600; max-lease-time 43200; next-server $next_server; class "pxeclients" { match if substring (option vendor-class-identifier, 0, 9) = "PXEClient"; if option pxe-system-type = 00:02 { filename "ia64/elilo.efi"; } else if option pxe-system-type = 00:06 { filename "grub/grub-x86.efi"; } else if option pxe-system-type = 00:07 { filename "grub/grub-x86_64.efi"; } else { filename "pxelinux.0"; } } group { host $iface.name { hardware ethernet $mac; fixed-address $iface.ip_address; option host-name "$iface.hostname"; option subnet-mask $iface.netmask; option routers $iface.gateway; if exists user-class and option user-class = "gPXE" { filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner"; } else if exists user-class and option user-class = "iPXE" { filename "http://$cobbler_server/cblr/svc/op/gpxe/system/$iface.owner"; } else { filename "undionly.kpxe"; } filename "$iface.filename"; next-server $next_server; } [root@center-linux software]#
三、启动Cobbler服务:
启动Cobbler服务:
[root@center-linux software]# systemctl status cobblerd ● cobblerd.service - Cobbler Helper Daemon Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; disabled; vendor preset: disabled) Active: inactive (dead) [root@center-linux software]# [root@center-linux software]# systemctl enable cobblerd Created symlink from /etc/systemd/system/multi-user.target.wants/cobblerd.service to /usr/lib/systemd/system/cobblerd.service. [root@center-linux software]# [root@center-linux software]# systemctl status cobblerd ● cobblerd.service - Cobbler Helper Daemon Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled) Active: inactive (dead) [root@center-linux software]# [root@center-linux software]# systemctl start cobblerd [root@center-linux software]# [root@center-linux software]# systemctl status cobblerd ● cobblerd.service - Cobbler Helper Daemon Loaded: loaded (/usr/lib/systemd/system/cobblerd.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2017-01-18 15:10:49 CST; 2s ago Process: 10635 ExecStartPost=/usr/bin/touch /usr/share/cobbler/web/cobbler.wsgi (code=exited, status=0/SUCCESS) Main PID: 10634 (cobblerd) CGroup: /system.slice/cobblerd.service └─10634 /usr/bin/python2 /usr/bin/cobblerd -F Jan 18 15:10:49 center-linux systemd[1]: Starting Cobbler Helper Daemon... Jan 18 15:10:49 center-linux systemd[1]: Started Cobbler Helper Daemon. [root@center-linux software]#
启动Apache服务:
[root@center-linux gitlab]# cat /etc/httpd/conf/httpd.conf | grep --color ^Listen Listen 80 [root@center-linux gitlab]# [root@center-linux gitlab]# service httpd start Redirecting to /bin/systemctl start httpd.service [root@center-linux gitlab]# [root@center-linux gitlab]# netstat -tupln | grep httpd tcp6 0 0 :::80 :::* LISTEN 4376/httpd [root@center-linux gitlab]#
注意,这里的httpd端口一定要在80上面,否则Cobbler check的时候会出错:
[root@center-linux gitlab]# cobbler check httpd does not appear to be running and proxying cobbler, or SELinux is in the way. Original traceback: Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/cobbler/cli.py", line 251, in check_setup s.ping() File "/usr/lib64/python2.7/xmlrpclib.py", line 1224, in __call__ return self.__send(self.__name, args) File "/usr/lib64/python2.7/xmlrpclib.py", line 1578, in __request verbose=self.__verbose File "/usr/lib64/python2.7/xmlrpclib.py", line 1264, in request return self.single_request(host, handler, request_body, verbose) File "/usr/lib64/python2.7/xmlrpclib.py", line 1292, in single_request self.send_content(h, request_body) File "/usr/lib64/python2.7/xmlrpclib.py", line 1439, in send_content connection.endheaders(request_body) File "/usr/lib64/python2.7/httplib.py", line 969, in endheaders self._send_output(message_body) File "/usr/lib64/python2.7/httplib.py", line 829, in _send_output self.send(msg) File "/usr/lib64/python2.7/httplib.py", line 791, in send self.connect() File "/usr/lib64/python2.7/httplib.py", line 772, in connect self.timeout, self.source_address) File "/usr/lib64/python2.7/socket.py", line 571, in create_connection raise err error: [Errno 111] Connection refused [root@center-linux gitlab]#
Cobbler检查:
[root@center-linux gitlab]# cobbler check The following are potential configuration items that you may want to fix: 1 : dhcpd is not installed 2 : missing /etc/xinetd.d/tftp, install tftp-server? 3 : missing configuration file: /etc/xinetd.d/tftp 4 : some network boot-loaders are missing from /var/lib/cobbler/loaders, you may run 'cobbler get-loaders' to download them, or, if you only want to handle x86/x86_64 netbooting, you may ensure that you have installed a *recent* version of the syslinux package installed and can ignore this message entirely. Files in this directory, should you want to support all architectures, should include pxelinux.0, menu.c32, elilo.efi, and yaboot. The 'cobbler get-loaders' command is the easiest way to resolve these requirements. 5 : enable and start rsyncd.service with systemctl 6 : debmirror package is not installed, it will be required to manage debian deployments and repositories 7 : fencing tools were not found, and are required to use the (optional) power management features. install cman or fence-agents to use them Restart cobblerd and then run 'cobbler sync' to apply changes. [root@center-linux gitlab]#
解决上面的告警:
安装缺少的包:
yum install -y dhcp tftp-server pykickstart fence-agents rsync
TFTP:
[root@center-linux gitlab]# cat /etc/xinetd.d/tftp | grep disable disable = no [root@center-linux gitlab]# [root@center-linux gitlab]# systemctl enable tftp Created symlink from /etc/systemd/system/sockets.target.wants/tftp.socket to /usr/lib/systemd/system/tftp.socket. [root@center-linux gitlab]# [root@center-linux gitlab]# systemctl restart tftp [root@center-linux gitlab]# [root@center-linux gitlab]# systemctl status tftp ● tftp.service - Tftp Server Loaded: loaded (/usr/lib/systemd/system/tftp.service; indirect; vendor preset: disabled) Active: active (running) since Wed 2017-01-18 16:20:24 CST; 5s ago Docs: man:in.tftpd Main PID: 7598 (in.tftpd) CGroup: /system.slice/tftp.service └─7598 /usr/sbin/in.tftpd -s /var/lib/tftpboot Jan 18 16:20:24 center-linux systemd[1]: Started Tftp Server. Jan 18 16:20:24 center-linux systemd[1]: Starting Tftp Server... [root@center-linux gitlab]# [root@center-linux gitlab]# netstat -a | grep tftp udp6 0 0 [::]:tftp [::]:* [root@center-linux gitlab]#
Cobbler Loaders:
[root@center-linux gitlab]# ls /var/lib/cobbler/loaders/ [root@center-linux gitlab]# [root@center-linux gitlab]# cobbler get-loaders task started: 2017-01-18_162216_get_loaders task started (id=Download Bootloader Content, time=Wed Jan 18 16:22:16 2017) downloading https://cobbler.github.io/loaders/README to /var/lib/cobbler/loaders/README downloading https://cobbler.github.io/loaders/COPYING.elilo to /var/lib/cobbler/loaders/COPYING.elilo downloading https://cobbler.github.io/loaders/COPYING.yaboot to /var/lib/cobbler/loaders/COPYING.yaboot downloading https://cobbler.github.io/loaders/COPYING.syslinux to /var/lib/cobbler/loaders/COPYING.syslinux downloading https://cobbler.github.io/loaders/elilo-3.8-ia64.efi to /var/lib/cobbler/loaders/elilo-ia64.efi downloading https://cobbler.github.io/loaders/yaboot-1.3.17 to /var/lib/cobbler/loaders/yaboot downloading https://cobbler.github.io/loaders/pxelinux.0-3.86 to /var/lib/cobbler/loaders/pxelinux.0 downloading https://cobbler.github.io/loaders/menu.c32-3.86 to /var/lib/cobbler/loaders/menu.c32 downloading https://cobbler.github.io/loaders/grub-0.97-x86.efi to /var/lib/cobbler/loaders/grub-x86.efi downloading https://cobbler.github.io/loaders/grub-0.97-x86_64.efi to /var/lib/cobbler/loaders/grub-x86_64.efi *** TASK COMPLETE *** [root@center-linux gitlab]# [root@center-linux gitlab]# ls /var/lib/cobbler/loaders/ COPYING.elilo COPYING.yaboot grub-x86_64.efi menu.c32 README COPYING.syslinux elilo-ia64.efi grub-x86.efi pxelinux.0 yaboot [root@center-linux gitlab]#
RSYNC
[root@center-linux gitlab]# systemctl enable rsyncd Created symlink from /etc/systemd/system/multi-user.target.wants/rsyncd.service to /usr/lib/systemd/system/rsyncd.service. [root@center-linux gitlab]# [root@center-linux gitlab]# systemctl start rsyncd [root@center-linux gitlab]# systemctl status rsyncd ● rsyncd.service - fast remote file copy program daemon Loaded: loaded (/usr/lib/systemd/system/rsyncd.service; enabled; vendor preset: disabled) Active: active (running) since Wed 2017-01-18 16:24:49 CST; 35s ago Main PID: 8085 (rsync) CGroup: /system.slice/rsyncd.service └─8085 /usr/bin/rsync --daemon --no-detach Jan 18 16:24:49 center-linux rsyncd[8085]: rsyncd version 3.0.9 starting, listening on port 873 Jan 18 16:24:49 center-linux systemd[1]: Started fast remote file copy program daemon. Jan 18 16:24:49 center-linux systemd[1]: Starting fast remote file copy program daemon... [root@center-linux gitlab]#
对Debian Linux的支持:
[root@center-linux software]# mkdir debian [root@center-linux software]# cd debian/ [root@center-linux debian]# pwd /software/debian [root@center-linux debian]# [root@center-linux debian]# ls [root@center-linux debian]# [root@center-linux debian]# wget http://ftp.es.debian.org/debian/pool/main/d/debmirror/debmirror_2.25.tar.xz --2017-01-18 16:26:06-- http://ftp.es.debian.org/debian/pool/main/d/debmirror/debmirror_2.25.tar.xz Resolving ftp.es.debian.org (ftp.es.debian.org)... 82.194.78.250 Connecting to ftp.es.debian.org (ftp.es.debian.org)|82.194.78.250|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 52708 (51K) [application/x-xz] Saving to: ‘debmirror_2.25.tar.xz’ 100%[=============================================================================>] 52,708 17.5KB/s in 2.9s 2017-01-18 16:26:15 (17.5 KB/s) - ‘debmirror_2.25.tar.xz’ saved [52708/52708] [root@center-linux debian]# [root@center-linux debian]# ls debmirror_2.25.tar.xz [root@center-linux debian]# [root@center-linux debian]# tar xf debmirror_2.25.tar.xz [root@center-linux debian]# ls debmirror debmirror_2.25.tar.xz [root@center-linux debian]# [root@center-linux debian]# ls debmirror debian debmirror doc examples GPL Makefile mirror_size mirror-size test TODO [root@center-linux debian]# [root@center-linux debian]# cp debmirror/debmirror /usr/bin/ [root@center-linux debian]# cp debmirror/examples/debmirror.conf /etc [root@center-linux debian]# [root@center-linux debian]# cat /etc/debmirror.conf |grep -E "@dists=|@arches=" @dists="sid"; @arches="i386"; [root@center-linux debian]# sed -i 's/^@dists=/#@dists=/g' /etc/debmirror.conf [root@center-linux debian]# sed -i 's/^@arches=/#@arches=/g' /etc/debmirror.conf [root@center-linux debian]# [root@center-linux debian]# cat /etc/debmirror.conf |grep -E "@dists=|@arches=" #@dists="sid"; #@arches="i386"; [root@center-linux debian]#
然后,重启cobbler服务,再次检查:
[root@center-linux debian]# systemctl restart cobblerd [root@center-linux debian]# [root@center-linux debian]# cobbler check No configuration problems found. All systems go. [root@center-linux debian]#
可以看到,没有问题了。
应用Cobbler配置:
[root@center-linux debian]# cobbler sync task started: 2017-01-18_163000_sync task started (id=Sync, time=Wed Jan 18 16:30:00 2017) running pre-sync triggers cleaning trees removing: /var/lib/tftpboot/pxelinux.cfg/default removing: /var/lib/tftpboot/grub/images removing: /var/lib/tftpboot/grub/efidefault removing: /var/lib/tftpboot/s390x/profile_list copying bootloaders trying hardlink /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0 copying: /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0 trying hardlink /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32 copying: /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32 trying hardlink /var/lib/cobbler/loaders/yaboot -> /var/lib/tftpboot/yaboot trying hardlink /var/lib/cobbler/loaders/grub-x86.efi -> /var/lib/tftpboot/grub/grub-x86.efi trying hardlink /var/lib/cobbler/loaders/grub-x86_64.efi -> /var/lib/tftpboot/grub/grub-x86_64.efi copying distros to tftpboot copying images generating PXE configuration files generating PXE menu structure rendering DHCP files generating /etc/dhcp/dhcpd.conf rendering TFTPD files generating /etc/xinetd.d/tftp cleaning link caches running post-sync triggers running python triggers from /var/lib/cobbler/triggers/sync/post/* running python trigger cobbler.modules.sync_post_restart_services running: dhcpd -t -q received on stdout: received on stderr: running: service dhcpd restart received on stdout: received on stderr: Redirecting to /bin/systemctl restart dhcpd.service running shell triggers from /var/lib/cobbler/triggers/sync/post/* running python triggers from /var/lib/cobbler/triggers/change/* running python trigger cobbler.modules.scm_track running shell triggers from /var/lib/cobbler/triggers/change/* *** TASK COMPLETE *** [root@center-linux debian]#
至此,Cobbler的配置就结束了。
关于Cobbler的导入与其他的操作,可以参考其他的文章:
http://d-prototype.com/archives/tag/cobbler
——————————————————
Done。