青青草免费线看线看|啊在车上停不下来了|国产少女免费观看电视剧|仑乱88MAV|精品老司机在线观看视频|国产一区二区三区高清免费视频|在线观看免费777av

一次性裝100臺電腦的系統(tǒng) 批量安裝系統(tǒng)軟件


Cobbler是一款Linux生態(tài)的自動化運(yùn)維工具,基于Python2開發(fā),用于自動化批量部署安裝操作系統(tǒng);其提供基于CLI的管理方式和WEB配置界面,其中WEB配置界面是基于Python2和Django框架開發(fā) 。另外,cobbler還提供了API,方便二次開發(fā) 。Cobbler屬于C/S模型(客戶端/服務(wù)器模型)
1、查看系統(tǒng)版本
# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) (備注本次部署是在Centos7中進(jìn)行)
# uname -rm 3.10.0-229.el7.x86_64 x86_64
2、安裝epel源,安裝epel庫
#yum install -y epel-release#wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo 3、安裝cobbler環(huán)境所需的包
下載最新版的pip,然后安裝
#wget https://bootstrap.pypa.io/get-pip.py#python get-pip.py#ln -s /usr/local/python27/bin/pip2.7 /usr/bin/pip2#pip2 install Django==1.8.9 4、開始安裝cobbler
#yum install -y httpd dhcp tftp tftp-server rsync pykickstart xinetd #yum install -y cobbler 5、centos7安裝cobbler-web(cobbler-web2.8版本必須用django1.8.9版本)
#yum install httpd-devel#yum install -y cobbler-web 6、配置HTTPD的配置文件,更改項(xiàng)目存放的權(quán)限
#vim /etc/httpd/conf/httpd.conf SSLRequireSSLNSSRequireSSLSetEnv VIRTUALENVOptions Indexes MultiViewsOrder allow,deny##apache2.4必須改為AllowOverride AllAllow from all##apache2.4必須改為Require all granted 7、開啟服務(wù)和加開機(jī)啟動
#systemctl enable xinetd#systemctl start xinetd#systemctl start httpd#systemctl start cobblerd#systemctl enable httpd#systemctl enable cobblerd#systemctl enable rsyncd#systemctl start rsyncd 8、檢查cobbler
#cobbler check按照上面的提示,逐步修改配置如下:
修改cobbler的settings文件,備份
# cp /etc/cobbler/settings{,.ori} 修改server,Cobbler服務(wù)器的IP 。
#sed -i \\\'s/server: 127.0.0.1/server: 192.168.0.131/\\\' /etc/cobbler/settings 如果用Cobbler管理DHCP,修改本項(xiàng)
#sed -i \\\'s/next_server: 127.0.0.1/next_server: 192.168.0.131/\\\' /etc/cobbler/settings#sed -i \\\'s/manage_dhcp: 0/manage_dhcp: 1/\\\' /etc/cobbler/settings 防止循環(huán)裝系統(tǒng),適用于服務(wù)器第一啟動項(xiàng)是PXE啟動 。
#sed -i \\\'s/pxe_just_once: 0/pxe_just_once: 1/\\\' /etc/cobbler/settings 設(shè)置新裝系統(tǒng)的默認(rèn)root密碼123456 。random-phrase-here為干擾碼,可以自行設(shè)定 。
# openssl passwd -1 -salt \\\'cobbler\\\' \\\'123456\\\' $1$cobbler$sqDDOBeLKJVmxTCZr52/11
# vim /etc/cobbler/settings default_password_crypted: “$1$cobbler$sqDDOBeLKJVmxTCZr52/11”
修改tftp配置,啟用tftp
#vim /etc/xinetd.d/tftp

猜你喜歡