-
-
Save tao12345666333/6061599 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rh 6.0 kickstart with gpt. | |
1. add necessary service, remove unnecessary service | |
2. The last section starting with "#$SNIPPET('custom/xxyy')" are some post install scripts: | |
* modify /etc/hosts | |
127.0.0.1 localhost.localdomain localhost | |
private_ip hostname.jaseywang.me hostname | |
* remove zero route | |
* add some parameters to kernel options | |
* disable ipv6 | |
* add ntp server for each server to sync time | |
* disable netfilter if no public ip | |
* add public key for root to exec puppet | |
* modify dns resolver | |
3. install puppet, register to central puppet server | |
== | |
auth --useshadow --passalgo=sha512 | |
text | |
firewall --disabled | |
firstboot --disable | |
keyboard us | |
lang en_US | |
url --url=$tree | |
$yum_repo_stanza | |
$SNIPPET('network_config') | |
reboot | |
rootpw --iscrypted \$1\$4fEWqzf9\$CWDFjYD35/G3PHtF6ncjm/ | |
selinux --disabled | |
skipx | |
timezone Asia/Shanghai | |
install | |
network --bootproto=dhcp --device=em1 --onboot=on | |
bootloader --location=mbr --driveorder=/dev/sda | |
part /boot/efi --fstype efi --size 128 --asprimary --ondisk=sda | |
part /boot --fstype="ext4" --size=150 --ondisk=sda | |
part / --fstype="ext4" --size=20000 --fsoptions="defaults,noatime" --ondisk=sda | |
part /var --fstype="ext4" --size=40000 --fsoptions="defaults,noatime" --ondisk=sda | |
part /home --fstype="ext4" --grow --size=1 --fsoptions="defaults,noatime" --ondisk=sda | |
logging --host=192.168.1.1 --port=514 --level=debug | |
services --disabled cups,nfslock,rpcbind,postfix,qpidd,ip6tables,portreserve,avahi-daemon,rhnsd,rhsmcertd,snmpd,dsm_om_connsvc,dsm_om_shrsvc,dataeng | |
services --enable ntpd,sshd | |
user --name=jaseywang --password=\$1\$h8rftFck\$v3dy8FBidfiDJMAtFYK1 --iscrypted --uid=500 | |
%pre | |
#$SNIPPET('log_ks_pre') | |
#$SNIPPET('kickstart_start') | |
#$SNIPPET('pre_install_network_config') | |
#$SNIPPET('pre_anamon') | |
/usr/sbin/parted --script /dev/sda mklabel gpt | |
%end | |
%packages | |
$SNIPPET('puppet_install_if_enabled') | |
#$SNIPPET('custom/package') | |
%end | |
%post | |
#$SNIPPET('log_ks_post') | |
#$yum_config_stanza | |
#$SNIPPET('post_install_kernel_options') | |
#$SNIPPET('post_install_network_config') | |
#$SNIPPET('puppet_register_if_enabled') | |
#$SNIPPET('download_config_files') | |
#$SNIPPET('koan_environment') | |
#$SNIPPET('post_anamon') | |
#$SNIPPET('kickstart_done') | |
#$SNIPPET('custom/hosts') | |
#$SNIPPET('custom/zeroconf') | |
#$SNIPPET('custom/kopts') | |
#$SNIPPET('custom/ipv6') | |
#$SNIPPET('custom/ntp') | |
#$SNIPPET('custom/blacklist-netfilter') | |
#$SNIPPET('custom/root_public_key') | |
#$SNIPPET('custom/resolv') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment