偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

自動(dòng)化運(yùn)維實(shí)踐:Cobbler自動(dòng)安裝上百臺(tái)服務(wù)器不是夢(mèng)

運(yùn)維 系統(tǒng)運(yùn)維 系統(tǒng) 自動(dòng)化
運(yùn)維自動(dòng)化在企業(yè)生產(chǎn)環(huán)境中越來越重要,當(dāng)需要批量部署上百臺(tái)甚至上千臺(tái)服務(wù)器時(shí),如果不通過自動(dòng)化完成,根本不可想象,而Cobbler便可滿足這一需求,批量部署機(jī)器。

[[164742]]

簡(jiǎn)介

Cobbler 是一個(gè)免費(fèi)開源系統(tǒng)安裝部署軟件,用于自動(dòng)化網(wǎng)絡(luò)安裝操作系統(tǒng);基于Python開發(fā),是對(duì) PXE 的二次封裝,提供了 CLI 和 Web 的管理形式,也提供了API接口,方便二次開發(fā)使用。

它不僅可以安裝物理機(jī),同時(shí)也支持虛擬化、GuestOS的安裝。另外,Cobbler還能結(jié)合 Puppet 等集中化管理軟件,實(shí)現(xiàn)自動(dòng)化管理。

Cobbler各組件關(guān)系:

安裝過程:

  • 安裝Cobbler:

cobbler由epel源提供,故此需要事先配置指向 epel 的 yum 源;cobbler 會(huì)把依賴的服務(wù)一并安裝,如 tftp-server、httpd;還需要安裝 dncp、rsync 等。

 

  1. [root@node0 ~]# yum install cobbler pykickstart debmirror dhcp rsync cman fence-agents  
  2. [root@node0 ~]# service httpd start  
  3. [root@node0 ~]# chkconfig tftp on  
  4. [root@node0 ~]# chkconfig rsync on 
  • 配置Cobbler:

 

  1. [root@node0 ~]# vim /etc/cobbler/settings  
  2. server: 192.168.1.4  
  3. next_server: 192.168.1.4  
  4.  
  5. [root@node0 ~]# cobbler get-loaders  
  6.  
  7. [root@node0 ~]# vim /etc/debmirror.conf  
  8. #@dists="sid" 
  9. #@arches="i386";  
  10.  
  11. [root@node0 ~]# openssl passwd -1 -salt `openssl rand -hex 4`  
  12. $1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0  
  13. [root@node0 ~]# vim /etc/cobbler/settings  
  14. default_password_crypted: "$1$ca6a7d72$KDte4ZK00OCLiK4PLE4tp0"  
  15.  
  16. [root@node0 ~]# service cobblerd start  
  17. [root@node0 ~]# chkconfig cobblerd on  
  18. [root@node0 ~]# cobbler sync 
  • 配置DHCP:

 

  1. [root@node0 ~]# cp /usr/share/doc/dhcp-4.1.1/dhcpd.conf.sample /etc/dhcp/dhcpd.conf  
  2. [root@node0 ~]# vim /etc/dhcp/dhcpd.conf  
  3. subnet 192.168.1.0 netmask 255.255.255.0 {  
  4. range 192.168.1.1 192.168.1.100;  
  5. option routers 192.168.1.1;  
  6. next-server 192.168.1.4;  
  7. filename "pxelinux.0" 
  8.  
  9. [root@node0 ~]# service dhcpd start  
  10. [root@node0 ~]# chkconfig dhcpd on 
  • 添加distro:掛載鏡像,添加到cobbler;

 

  1. [root@node0 ~]# mount /mnt/hgfs/lin/CentOS-6.7-x86_64-bin-DVD1.iso /mnt/cdrom/  
  2. [root@node0 ~]# cobbler import --name=CentOS-6.7-x86_64 --path=/mnt/cdrom/ --kickstart=/root/anaconda-ks.cfg  
  3. task started: 2016-03-08_203724_import  
  4. task started (id=Media import, time=Tue Mar 8 20:37:24 2016)  
  5. Found a candidate signature: breed=redhat, version=rhel6  
  6. Found a matching signature: breed=redhat, version=rhel6  
  7. Adding distros from path /var/www/cobbler/ks_mirror/CentOS-6.7-x86_64:  
  8. skipping import, as distro name already exists: CentOS-6.7-x86_64  
  9. No distros imported, bailing out  
  10. !!! TASK FAILED !!! 
  • 查看當(dāng)前distro:

 

root@node0 ~]# cobbler distro list 
  1. CentOS-6.7-x86_64 
  • 測(cè)試安裝:

 

責(zé)任編輯:劉永紅 來源: 馬哥Linux運(yùn)維
相關(guān)推薦

2013-04-17 15:48:51

2011-09-01 10:22:03

Cobbler運(yùn)維自動(dòng)化

2013-04-11 17:31:28

運(yùn)維自動(dòng)化Cobbler

2014-05-16 14:31:55

運(yùn)維自動(dòng)化Cobbler

2018-05-15 10:34:55

2017-09-15 14:10:01

系統(tǒng)運(yùn)維服務(wù)器

2016-09-07 13:15:24

Zabbix監(jiān)控Action

2015-10-08 10:55:23

云服務(wù)自動(dòng)化運(yùn)維 ANSIBLE

2011-07-25 14:53:37

Unix服務(wù)器運(yùn)維

2012-10-22 14:54:48

2018-11-27 11:17:50

半自動(dòng)化運(yùn)維服務(wù)器

2015-08-05 09:53:34

運(yùn)維自動(dòng)化

2018-06-23 07:31:05

2017-07-25 10:53:27

2014-08-04 10:10:35

IT運(yùn)維自動(dòng)化運(yùn)維

2022-06-09 13:45:18

vivoK8S集群Kubernetes

2018-12-14 11:07:00

2015-06-24 10:42:19

云計(jì)算運(yùn)維自動(dòng)化運(yùn)維ANSIBLE

2017-10-13 13:14:35

互聯(lián)網(wǎng)

2012-11-20 17:22:57

點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號(hào)