阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

自动化运维之Cobbler部署系统

135次阅读
没有评论

共计 15298 个字符,预计需要花费 39 分钟才能阅读完成。

一、Cobbler 简介

Cobbler 是一个快速网络安装 linux 的服务,而且在经过调整也可以支持网络安装 windows。该工具使用 Python 开发,小巧轻便(才 15k 行 python 代码),使用简单的命令即可完成 PXE 网络安装环境的配置,同时还可以管理 DHCP、DNS、yum 仓库、构造系统 ISO 镜像。

Cobbler 支持命令行管理,web 界面管理,还提供了 API 接口,方便二次开发

Cobbler 客户端 Koan 支持虚拟机安装和操作系统重新安装,使重装系统更便捷。

Cobbler 提供的功能

使用 Cobbler,您无需进行人工干预即可安装机器。Cobbler 设置一个 PXE 引导环境(它还可以使用 yaboot 支持 PowerPC),并控制与安装相关的所有方面,比如网络引导服务(DHCP 和 TFTP)与存储库镜像。当希望安装一台新机器时,Cobbler 可以:

1)使用一个以前定义的模板来配置 DHCP 服务(如果启用了管理 DHCP)

2)将一个存储库(yum 或 rsync)建立镜像或解压缩一个媒介,以注册一个新操作系统

3)在 DHCP 配置文件中为需要安装的机器创建一个条目,并使用指定的参数(IP 和 MAC)

4)在 TFTP 服务目录下创建适当的 PXE 文件

5)重新启动 DHCP 服务以反应更改

6)重新启动机器以开始安装(如果电源管理已启动)

Cobbler 支持众多的发行版:RedHat、Fedora、CentOS、Debian、Ubuntu 和 SUSE。当添加一个操作系统(通常通过使用 ISO 文件)时,Cobbler 知道如何解压缩合适的文件并调整网络服务,以正确引导机器。

Cobbler 可以使用 kickstart 模板。基于 Red Hat 或 Fedora 的系统使用 kickstart 文件来自动化安装流程。通过使用模板,就会拥有基本的 kickstart 模板,然后定义如何针对一种配置文件或机器配置而替换其中的变量。例如,一个模板可能包含两个变量 $domain 和 $machine_name. 在 Cobbler 配置中,一个配置文件指定 domain=mydomain.com,并且每台使用该配置文件的机器在 machine_name 变量中指定其名称。该配置文件的所有机器都使用相同的 kickstart 安装且针对 domain=mydomain.com 进行配置,但每台机器拥有其自己的机器名称。您仍然可以使用 kickstart 模板在不同的域中安装其他机器并使用不同的机器名称。

为了协助管理系统,Cobbler 可通过 fence scripts 连接到各个电源管理环境。Cobbler 支持 apc_snmp、bladecenter、bullpap、drac、ether_wake、ilo、integrity、ipmilan、ipmitool、lpar、rsa、virsh 和 wti。要重新安装一台机器,可运行 reboot system foo 命令,而且 Cobbler 会使用必要的 和信息来为您运行恰当的 fence scripts(比如机器插槽数)。

除了这些特性,还可以使用一个配置管理系统(CMS)。你有两种选择:该工具内的一个内部系统,或者现成的外部 CMS,比如 Chef 或 Puppet。借助内部系统,你可以指定文件模板,这些模板会依据配置参数进行处理(与 kickstart 模板的处理方式一样),然后复制到你指定的位置。如果必须自动将配置文件部署到特定机器,那么此功能很有用

使用 koan 客户端,Cobbler 可从客户端配置虚拟机并重新安装系统。

二、Cobbler 的设计方式

Cobbler 的配置结构基于一组注册的对象。每个对象表示一个与另一个实体相关联的实体(该对象指向另一个对象,或者另一个对象指向该对象)。当一个对象指向另一个对象时,它就继承了被指向对象的数据,并可覆盖或添加更多特定信息。以下对象类型的定义

Distros(发行版):表示一个操作系统,它承载了内核和 initrd 的信息,以及内核参数等其他数据

Profile(配置文件):包含一个发行版、一个 kickstart 文件以及可能的存储库,还包含更多特定的内核参数等其他数据

Systems(系统):表示要配给的额机器。它包含一个配置文件或一个景象,还包含 IP 和 MAC 地址、电源管理(地址、凭据、类型)、(网卡绑定、设置 valn 等)

Repository(镜像):保存一个 yum 或 rsync 存储库的镜像信息

Image(存储库):可替换一个包含不属于此类比的额文件的发行版对象(例如,无法分为内核和 initrd 的对象)。

基于注册的对象以及各个对象之间的关联,Cobbler 知道如何更改文件系统以反应具体配置。因为系统配置的内部是抽象的,所以您可以仅关注想要执行的操作。

自动化运维之 Cobbler 部署系统

三、Cobbler 各个组件的关系

自动化运维之 Cobbler 部署系统

通过 cobbler 管理的或者手动管理的服务

  • TFTP
  • rsync
  • DHCP
  • DNS

运维自动化之 Cobbler 安装配置 http://www.linuxidc.com/Linux/2013-03/81575.htm

RHEL5.5 下 Cobbler 的配置 http://www.linuxidc.com/Linux/2013-06/86115.htm

运维自动化部署 Cobbler 之服务安装篇 http://www.linuxidc.com/Linux/2013-02/80133.htm

利用 Cobbler 批量快速网络安装 CentOS http://www.linuxidc.com/Linux/2012-12/75838.htm

CentOS 6.3 上安装部署 Cobbler http://www.linuxidc.com/Linux/2012-10/72094.htm

Cobbler 批量部署 Linux 系统 http://www.linuxidc.com/Linux/2014-02/97259.htm

四、安装配置 Cobbler

  1、安装方式

    cobbler 可以手动编译安装,也可以基于 yum 源的安装,如果使用 yum 源安装,则需要配置 epel 源 epel 源可以通过下载官网的 epel 源的目录来实现 https://fedoraproject.org/wiki/EPEL

1 # yum -y install cobbler cobbler-web pykickstart debmirror

2、检查配置文件,需要在启动 cobblerd 和 httpd 服务的前提下检查

[root@c3 ~]# service httpd start
[root@c3 ~]# service cobblerd start
[root@c3 ~]# cobbler check
The following are potential configuration items that you may want to fix:
1 : The ‘server’ field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work.  This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
2 : For PXE to be functional, the ‘next_server’ field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
3 : 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.
4 : change ‘disable’ to ‘no’ in /etc/xinetd.d/rsync
5 : comment out ‘dists’ on /etc/debmirror.conf for proper debian support
6 : comment out ‘arches’ on /etc/debmirror.conf for proper debian support
7 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to ‘cobbler’ and should be changed, try: “openssl passwd -1 -salt ‘random-phrase-here’ ‘your-password-here'” to generate new one
8 : 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.

    以上 8 个问题的解决方法

    1. 修改 /etc/cobbler/settings 文件中的 server 参数的值为提供 cobbler 服务的主机对应的 ip 地址

      server: 192.168.13.8

    2. 修改 /etc/cobbler/settings 文件的 next_server 参数的值为提供 PXE 服务的主机的 ip

      next_server: 192.168.13.8

    3. 如果当前节点可以访问互联网,执行“cobbler get-loaders”命令下载 pxelinux.0,menu.c32,elibo.efi,yaboot 文件,否则则需要安装 syslinux 程序包,复制 /usr/share/syslinux/ 中的 pxelinux.0,menu.c32 等文件至 /var/lib/cobbler/loaders 目录中

    4. 将 /etc/xinetd.d/rsync 中的 disable 改为 no,或者执行 chkconfig rsync on

    5. 注释 /etc/debmirror.conf 文件中的“@dists=”sid”;”一行

    6. 注释 /etc/debmirror.conf 文件中的“@arches=”i386″;”一行

    7. 执行“openssl passwd -1 -salt `pensshl rand -hex 4`”生成密码,并将密码串替换掉 /etc/cobbler/settings 中的 default_password_crypted

      default_password_crypted: “$1$6a385fbf$iOHgbfJ0BJRQh78yAMA2L1”

8. 安装 cam 和 fence-agents 来实现电源管理

同步数据

[root@c3 cobbler]# cobbler sync
task started: 2014-04-06_224909_sync
task started (id=Sync, time=Sun Apr  6 22:49:09 2014)
running pre-sync triggers
cleaning trees
mkdir: /var/lib/tftpboot/pxelinux.cfg
mkdir: /var/lib/tftpboot/grub
mkdir: /var/lib/tftpboot/s390x
mkdir: /var/lib/tftpboot/ppc
mkdir: /var/lib/tftpboot/etc
removing: /var/lib/tftpboot/grub/images
copying bootloaders
trying hardlink /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
trying hardlink /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32
trying hardlink /usr/share/syslinux/memdisk -> /var/lib/tftpboot/memdisk
copying distros to tftpboot
copying images
generating PXE configuration files
generating PXE menu structure
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 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 ***

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2014-11/109956p2.htm

五、配置 cobbler 依赖的服务

cobbler 的运行以来 dhcp、tftp、rsync、dns 服务

cobbler 可行管理这些服务中的部分甚至全部,但需要配置 /etc/cobbler/settings 文件中的“manager_dhcp”、“manage_tftpd”、“manage_rsync”、“manage_dns”来定义,同时各种服务都有着不同的实现方式,如果进行自定义,需要通过修改 /etc/cobbler/modules.conf 配置文件中各个服务的模块参数的值来实现

我们通过独立管理,不通过 cobbler 管理这些服务。

1、配置 dhcp 服务

[root@c3 ~]# yum -y install dhcp

[root@c3 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf

[root@c3 ~]# vim /etc/dhcp/dhcpd.conf

option domain-name “jungege.com”;

option domain-name-servers 192.168.13.8;

default-lease-time 43200;

max-lease-time 86400;

log-facility local7;

subnet 192.168.13.0 netmask 255.255.255.0 {

range 192.168.13.2 192.168.13.100;

option routers 192.168.13.8;

}

filename “pxelinux.0”;

next-server 192.168.13.8;

启动服务测试

# service  dhcpd start

# ss -ntlup | grep 67

udp    UNCONN    0      0                      *:67                    *:*      users:((“dhcpd”,2766,7))

2、配置 tftpd 服务

[root@c3 ~]# yum -y install tftp-server

[root@c3 ~]# chkconfig tftp on

六、配置 Cobbler

1、定义 distro

实现 coobler 的第一步就是定义 distro,可以通过其指定外部的安装引导内核及 ramdisk 文件的方式实现。而如果已经有现成的安装树(如 OS 的安装镜像)则使用 import 导入的方式

挂载安装光盘

# mount /dev/cdrom /media

导入系统镜像

# cobbler import –name=CentOS6.5-x86-64 –path=/media/

导入过程如下

task started: 2014-04-06_230831_import

task started (id=Media import, time=Sun Apr  6 23:08:31 2014)

Found a candidate signature: breed=RedHat, version=rhel6

Found a matching signature: breed=redhat, version=rhel6

Adding distros from path /var/www/cobbler/ks_mirror/centos6.5-x86-64:

creating new distro: centos6.5-64-x86_64

trying symlink: /var/www/cobbler/ks_mirror/centos6.5-x86-64 -> /var/www/cobbler/links/centos6.5-64-x86_64

creating new profile: centos6.5-64-x86_64

associating repos

checking for rsync repo(s)

checking for rhn repo(s)

checking for yum repo(s)

starting descent into /var/www/cobbler/ks_mirror/centos6.5-x86-64 for centos6.5-64-x86_64

processing repo at : /var/www/cobbler/ks_mirror/centos6.5-x86-64

need to process repo/comps: /var/www/cobbler/ks_mirror/centos6.5-x86-64

looking for /var/www/cobbler/ks_mirror/centos6.5-x86-64/repodata/*comps*.xml

running: createrepo -c cache -s sha –groupfile /var/www/cobbler/ks_mirror/centos6.5-x86-64/repodata/b4e0b9342ef85d3059ff095fa7f140f654c2cb492837de689a58c581207d9632-c6-x86_64-comps.xml /var/www/cobbler/ks_mirror/centos6.5-x86-64

received on stdout: Spawning worker 0 with 3995 pkgs

Workers Finished

Gathering worker results

Saving Primary metadata

Saving file lists metadata

Saving other metadata

Generating sqlite DBs

Sqlite DBs complete

received on stderr:

*** TASK COMPLETE ***

列出所有的 distro

[root@c3 ~]# cobbler distro list

centos6.5-64-x86_64

2、管理 profile

cobbler 使用 profile 来为特定的需求类别提供所需要安装的配置,即在 distro 的基础上通过提供 kickstart 文件来生成一个特定的系统安装配置。distro 的 profile 可以出现在 pxe 的引导菜单中作为安装的选择之一。

关于 kickstart 的文件制作请参照我的上篇博客

添加 profile

# cobbler  profile add –name=centos6.5-x86_64 –distro=centos6.5-64-x86_64 –kickstart=/root/anaconda-ks.cfg

列出当前系统上的 profile

# cobbler profile list

centos6.5-64-x86_64

centos6.5-x86_64

删除掉一个 profile

# cobbler profile remove –name=centos6.5-64-x86_64

# cobbler profile list

centos6.5-x86_64

3、重启 cobblerd 服务并同步数据到相应目录

# service cobblerd restart

# cobbler sync

4、系统安装测试

自动化运维之 Cobbler 部署系统自动化运维之 Cobbler 部署系统

开始安装。。。

七、配置 cobbler_web

cobbler_web 支持多种认证方式,如 authn_configfil、authn_ldap 或 authn_pam 等,默认为 authn_denyall 拒接所有。

下面我们使用 authn_pam 模块认证 cobbler_web 用户

# vim  /etc/cobbler/modules.conf

module = authn_pam

# useradd zxj

# passwd zxj

输入密码

# vim  /etc/cobbler/users.conf

[admins]

admin = “zxj”

访问:https://172.16.13.8/cobbler_web(注意我使用的虚拟机是双网卡 172.16.13.8 与 192.168.13.8 两个 ip 地址)

自动化运维之 Cobbler 部署系统

自动化运维之 Cobbler 部署系统

此时我们可以手动的添加删除配置,更灵活的对 distro、profile 等组件的管理!

PS:水平有限,有错误请指出!

一、Cobbler 简介

Cobbler 是一个快速网络安装 linux 的服务,而且在经过调整也可以支持网络安装 windows。该工具使用 Python 开发,小巧轻便(才 15k 行 python 代码),使用简单的命令即可完成 PXE 网络安装环境的配置,同时还可以管理 DHCP、DNS、yum 仓库、构造系统 ISO 镜像。

Cobbler 支持命令行管理,web 界面管理,还提供了 API 接口,方便二次开发

Cobbler 客户端 Koan 支持虚拟机安装和操作系统重新安装,使重装系统更便捷。

Cobbler 提供的功能

使用 Cobbler,您无需进行人工干预即可安装机器。Cobbler 设置一个 PXE 引导环境(它还可以使用 yaboot 支持 PowerPC),并控制与安装相关的所有方面,比如网络引导服务(DHCP 和 TFTP)与存储库镜像。当希望安装一台新机器时,Cobbler 可以:

1)使用一个以前定义的模板来配置 DHCP 服务(如果启用了管理 DHCP)

2)将一个存储库(yum 或 rsync)建立镜像或解压缩一个媒介,以注册一个新操作系统

3)在 DHCP 配置文件中为需要安装的机器创建一个条目,并使用指定的参数(IP 和 MAC)

4)在 TFTP 服务目录下创建适当的 PXE 文件

5)重新启动 DHCP 服务以反应更改

6)重新启动机器以开始安装(如果电源管理已启动)

Cobbler 支持众多的发行版:RedHat、Fedora、CentOS、Debian、Ubuntu 和 SUSE。当添加一个操作系统(通常通过使用 ISO 文件)时,Cobbler 知道如何解压缩合适的文件并调整网络服务,以正确引导机器。

Cobbler 可以使用 kickstart 模板。基于 Red Hat 或 Fedora 的系统使用 kickstart 文件来自动化安装流程。通过使用模板,就会拥有基本的 kickstart 模板,然后定义如何针对一种配置文件或机器配置而替换其中的变量。例如,一个模板可能包含两个变量 $domain 和 $machine_name. 在 Cobbler 配置中,一个配置文件指定 domain=mydomain.com,并且每台使用该配置文件的机器在 machine_name 变量中指定其名称。该配置文件的所有机器都使用相同的 kickstart 安装且针对 domain=mydomain.com 进行配置,但每台机器拥有其自己的机器名称。您仍然可以使用 kickstart 模板在不同的域中安装其他机器并使用不同的机器名称。

为了协助管理系统,Cobbler 可通过 fence scripts 连接到各个电源管理环境。Cobbler 支持 apc_snmp、bladecenter、bullpap、drac、ether_wake、ilo、integrity、ipmilan、ipmitool、lpar、rsa、virsh 和 wti。要重新安装一台机器,可运行 reboot system foo 命令,而且 Cobbler 会使用必要的 和信息来为您运行恰当的 fence scripts(比如机器插槽数)。

除了这些特性,还可以使用一个配置管理系统(CMS)。你有两种选择:该工具内的一个内部系统,或者现成的外部 CMS,比如 Chef 或 Puppet。借助内部系统,你可以指定文件模板,这些模板会依据配置参数进行处理(与 kickstart 模板的处理方式一样),然后复制到你指定的位置。如果必须自动将配置文件部署到特定机器,那么此功能很有用

使用 koan 客户端,Cobbler 可从客户端配置虚拟机并重新安装系统。

二、Cobbler 的设计方式

Cobbler 的配置结构基于一组注册的对象。每个对象表示一个与另一个实体相关联的实体(该对象指向另一个对象,或者另一个对象指向该对象)。当一个对象指向另一个对象时,它就继承了被指向对象的数据,并可覆盖或添加更多特定信息。以下对象类型的定义

Distros(发行版):表示一个操作系统,它承载了内核和 initrd 的信息,以及内核参数等其他数据

Profile(配置文件):包含一个发行版、一个 kickstart 文件以及可能的存储库,还包含更多特定的内核参数等其他数据

Systems(系统):表示要配给的额机器。它包含一个配置文件或一个景象,还包含 IP 和 MAC 地址、电源管理(地址、凭据、类型)、(网卡绑定、设置 valn 等)

Repository(镜像):保存一个 yum 或 rsync 存储库的镜像信息

Image(存储库):可替换一个包含不属于此类比的额文件的发行版对象(例如,无法分为内核和 initrd 的对象)。

基于注册的对象以及各个对象之间的关联,Cobbler 知道如何更改文件系统以反应具体配置。因为系统配置的内部是抽象的,所以您可以仅关注想要执行的操作。

自动化运维之 Cobbler 部署系统

三、Cobbler 各个组件的关系

自动化运维之 Cobbler 部署系统

通过 cobbler 管理的或者手动管理的服务

  • TFTP
  • rsync
  • DHCP
  • DNS

运维自动化之 Cobbler 安装配置 http://www.linuxidc.com/Linux/2013-03/81575.htm

RHEL5.5 下 Cobbler 的配置 http://www.linuxidc.com/Linux/2013-06/86115.htm

运维自动化部署 Cobbler 之服务安装篇 http://www.linuxidc.com/Linux/2013-02/80133.htm

利用 Cobbler 批量快速网络安装 CentOS http://www.linuxidc.com/Linux/2012-12/75838.htm

CentOS 6.3 上安装部署 Cobbler http://www.linuxidc.com/Linux/2012-10/72094.htm

Cobbler 批量部署 Linux 系统 http://www.linuxidc.com/Linux/2014-02/97259.htm

四、安装配置 Cobbler

  1、安装方式

    cobbler 可以手动编译安装,也可以基于 yum 源的安装,如果使用 yum 源安装,则需要配置 epel 源 epel 源可以通过下载官网的 epel 源的目录来实现 https://fedoraproject.org/wiki/EPEL

1 # yum -y install cobbler cobbler-web pykickstart debmirror

2、检查配置文件,需要在启动 cobblerd 和 httpd 服务的前提下检查

[root@c3 ~]# service httpd start
[root@c3 ~]# service cobblerd start
[root@c3 ~]# cobbler check
The following are potential configuration items that you may want to fix:
1 : The ‘server’ field in /etc/cobbler/settings must be set to something other than localhost, or kickstarting features will not work.  This should be a resolvable hostname or IP for the boot server as reachable by all machines that will use it.
2 : For PXE to be functional, the ‘next_server’ field in /etc/cobbler/settings must be set to something other than 127.0.0.1, and should match the IP of the boot server on the PXE network.
3 : 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.
4 : change ‘disable’ to ‘no’ in /etc/xinetd.d/rsync
5 : comment out ‘dists’ on /etc/debmirror.conf for proper debian support
6 : comment out ‘arches’ on /etc/debmirror.conf for proper debian support
7 : The default password used by the sample templates for newly installed machines (default_password_crypted in /etc/cobbler/settings) is still set to ‘cobbler’ and should be changed, try: “openssl passwd -1 -salt ‘random-phrase-here’ ‘your-password-here'” to generate new one
8 : 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.

    以上 8 个问题的解决方法

    1. 修改 /etc/cobbler/settings 文件中的 server 参数的值为提供 cobbler 服务的主机对应的 ip 地址

      server: 192.168.13.8

    2. 修改 /etc/cobbler/settings 文件的 next_server 参数的值为提供 PXE 服务的主机的 ip

      next_server: 192.168.13.8

    3. 如果当前节点可以访问互联网,执行“cobbler get-loaders”命令下载 pxelinux.0,menu.c32,elibo.efi,yaboot 文件,否则则需要安装 syslinux 程序包,复制 /usr/share/syslinux/ 中的 pxelinux.0,menu.c32 等文件至 /var/lib/cobbler/loaders 目录中

    4. 将 /etc/xinetd.d/rsync 中的 disable 改为 no,或者执行 chkconfig rsync on

    5. 注释 /etc/debmirror.conf 文件中的“@dists=”sid”;”一行

    6. 注释 /etc/debmirror.conf 文件中的“@arches=”i386″;”一行

    7. 执行“openssl passwd -1 -salt `pensshl rand -hex 4`”生成密码,并将密码串替换掉 /etc/cobbler/settings 中的 default_password_crypted

      default_password_crypted: “$1$6a385fbf$iOHgbfJ0BJRQh78yAMA2L1”

8. 安装 cam 和 fence-agents 来实现电源管理

同步数据

[root@c3 cobbler]# cobbler sync
task started: 2014-04-06_224909_sync
task started (id=Sync, time=Sun Apr  6 22:49:09 2014)
running pre-sync triggers
cleaning trees
mkdir: /var/lib/tftpboot/pxelinux.cfg
mkdir: /var/lib/tftpboot/grub
mkdir: /var/lib/tftpboot/s390x
mkdir: /var/lib/tftpboot/ppc
mkdir: /var/lib/tftpboot/etc
removing: /var/lib/tftpboot/grub/images
copying bootloaders
trying hardlink /var/lib/cobbler/loaders/pxelinux.0 -> /var/lib/tftpboot/pxelinux.0
trying hardlink /var/lib/cobbler/loaders/menu.c32 -> /var/lib/tftpboot/menu.c32
trying hardlink /usr/share/syslinux/memdisk -> /var/lib/tftpboot/memdisk
copying distros to tftpboot
copying images
generating PXE configuration files
generating PXE menu structure
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 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 ***

更多详情见请继续阅读下一页的精彩内容 :http://www.linuxidc.com/Linux/2014-11/109956p2.htm

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-20发表,共计15298字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中