首页新闻动态正文

-Cobbler自动化安装系统3【黑马大数据培训】

更新时间:2019年07月29日 15时43分54秒 来源:黑马程序员论坛



Cobbler 配置文件

Cobbler(配置文件)

Centos 7.3 x86_64 下的配置文件模板
Centos-7.3-x86_64.cfg


[AppleScript] 纯文本查看 复制代码
#Kickstart Configurator by BrandynX
#platform=x86, AMD64, or Intel EM64T

#System  language
lang en_US

#System keyboard
keyboard us

#Install OS instead of upgrade
install

#Use text mode install
text

#Sytem timezone
timezone Asia/Shanghai

#Use NFS installation Media
url --url=$tree

#Root password
rootpw --iscrypted $default_password_crypted

#Network information
$SNIPPET('network_config')
#network --bootproto=dhcp --device=eth0 --onboot=on

#System authorization infomation
auth  --useshadow  --enablemd5

#Firewall configuration
firewall --disabled

#SELinux configuration
selinux --disabled

# Reboot after installation
reboot

#System bootloader configuration
bootloader --location=mbr

#Clear the Master Boot Record
zerombr

#Partition clearing information
clearpart --all --initlabel

#Disk partitioning information
part /boot --fstype xfs --size 1024 --ondisk sda
#Oracle:part swap --size 16384 --ondisk sda
part swap --size 2048 --ondisk sda
part / --fstype xfs --size 1 --grow --ondisk sda


#Do not configure XWindows
skipx

%pre
$SNIPPET('log_ks_pre')
$SNIPPET('kickstart_start')
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%end


#Package install information
%packages
@base
@core
@fonts
@performance tools
%end


%post
$yum_config_stanza
wget -O /tmp/c7_op_script.tar.gz http://192.168.0.238/c7_op_script.tar.gz
cd /tmp && tar xzf c7_op_script.tar.gz
chmod +x -R /tmp/c7_op_script/* 
cd /tmp/c7_op_script/sys_optimiz && /bin/sh -x  centos7_optimiz.sh
%end
Centos 6.8 x86_64 下的配置文件模板
Centos-6.8-x86_64.cfg

#Kickstart Configurator by BrandynX
#platform=x86, AMD64, or Intel EM64T

# System language
lang en_US

# System keyboard
keyboard us

# Install OS instead of upgrade
install

# Use graphical install
text
firstboot --disable

# System timezone
timezone  Asia/Shanghai

# Use network installation
url --url=$tree
#url --url="http://192.168.0.238/cobbler/ks_mirror/Centos-6.8-x86_64/"

# Root password 123qwe!@#
rootpw --iscrypted $default_password_crypted
#rootpw --iscrypted $1$DLTd6xbX$UOYR/gXuVkD2rxWtI4y/l/

# Network information
$SNIPPET('network_config')
#network  --bootproto=dhcp --device=eth0 --onboot=on

# System authorization information
auth  --useshadow  --passalgo=sha512

# Firewall configuration
firewall --disabled

# SELinux configuration
selinux --disabled

# Reboot after installation
reboot

# System bootloader configuration
bootloader --location=mbr

# Clear the Master Boot Record
zerombr

# Partition clearing information
clearpart --all --initlabel 

# Disk partitioning information
part /boot --fstype  ext4 --size 1024 --ondisk sda
#part swap --size 16384 --ondisk sda
part swap --size 2048 --ondisk sda
part / --fstype ext4 --size 1 --grow --ondisk sda


%pre
$SNIPPET('log_ks_pre')
$SNIPPET('kickstart_start')
$SNIPPET('pre_install_network_config')
# Enable installation monitoring
$SNIPPET('pre_anamon')
%end

%packages
@base
@core
@fonts
@chinese-support
@performance tools

%post
$yum_config_stanza
mkdir -p /app/scripts
mkdir -p /data/
wget -O /app/scripts/centos6_optimiz.sh http://192.168.0.232/centos6_optimiz.sh
chmod +x /app/scripts/centos6_optimiz.sh && /bin/sh /app/scripts/centos6_optimiz.sh
%end

推荐了解热门学科

java培训 Python人工智能 Web前端培训 PHP培训
区块链培训 影视制作培训 C++培训 产品经理培训
UI设计培训 新媒体培训 软件测试培训 Linux运维
大数据培训 智能机器人软件开发




传智播客是一家致力于培养高素质软件开发人才的科技公司“黑马程序员”是传智播客旗下高端IT教育品牌。自“黑马程序员”成立以来,教学研发团队一直致力于打造精品课程资源,不断在产、学、研3个层面创新自己的执教理念与教学方针,并集中“黑马程序员”的优势力量,针对性地出版了计算机系列教材50多册,制作教学视频数+套,发表各类技术文章数百篇。

传智播客从未停止思考

传智播客副总裁毕向东在2019IT培训行业变革大会提到,“传智播客意识到企业的用人需求已经从初级程序员升级到中高级程序员,具备多领域、多行业项目经验的人才成为企业用人的首选。”

中级程序员和初级程序员的差别在哪里?
项目经验。毕向东表示,“中级程序员和初级程序员最大的差别在于中级程序员比初级程序员多了三四年的工作经验,从而多出了更多的项目经验。“为此,传智播客研究院引进曾在知名IT企业如阿里、IBM就职的高级技术专家,集中研发面向中高级程序员的课程,用以满足企业用人需求,尽快补全IT行业所需的人才缺口。

何为中高级程序员课程?

传智播客进行了定义。中高级程序员课程,是在当前主流的初级程序员课程的基础上,增加多领域多行业的含金量项目,从技术的广度和深度上进行拓展“我们希望用5年的时间,打造上百个高含金量的项目,覆盖主流的32个行业。”传智播客课程研发总监于洋表示。




黑马程序员热门视频教程

Python入门教程完整版(懂中文就能学会) 零起点打开Java世界的大门
C++| 匠心之作 从0到1入门学编程 PHP|零基础入门开发者编程核心技术
Web前端入门教程_Web前端html+css+JavaScript 软件测试入门到精通


在线咨询 我要报名
和我们在线交谈!