Cobbler 配置文件


Cobbler(配置文件)

Centos 7.3 x86_64 下的配置文件模板

Centos-7.3-x86_64.cfg


 

[AppleScript] 纯文本查看 复制代码

?

001

002

003

004

005

006

007

008

009

010

011

012

013

014

015

016

017

018

019

020

021

022

023

024

025

026

027

028

029

030

031

032

033

034

035

036

037

038

039

040

041

042

043

044

045

046

047

048

049

050

051

052

053

054

055

056

057

058

059

060

061

062

063

064

065

066

067

068

069

070

071

072

073

074

075

076

077

078

079

080

081

082

083

084

085

086

087

088

089

090

091

092

093

094

095

096

097

098

099

100

101

102

103

104

105

106

107

108

109

110

111

112

113

114

115

116

117

118

119

120

121

122

123

124

125

126

127

128

129

130

131

132

133

134

135

136

137

138

139

140

141

142

143

144

145

146

147

148

149

150

151

152

153

154

155

156

157

158

159

160

161

162

163

164

165

166

167

168

#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

 

Logo

一站式 AI 云服务平台

更多推荐