Cobbler6.4 Linux System Automation installation script

Source: Internet
Author: User
Tags nameserver

Auth--useshadow--enablemd5

# System Bootloader Configuration

Bootloader--LOCATION=MBR

# Partition Clearing Information

Clearpart--all--initlabel

# Use text mode install

Text

# Firewall Configuration

Firewall--disabled

# Run The Setup Agent on first boot

Firstboot--disable

# System Keyboard

Keyboard US

# System Language

Lang en_US

# Use Network Installation

URL--url= $tree

# If Any cobbler repo definitions were referenced in the Kickstart profiles, include them here.

$yum _repo_stanza

# Network Information

Network--onboot Yes--device em1--bootproto DHCP--noipv6

# Reboot after installation

Reboot


#Root Password

ROOTPW Password

# SELinux Configuration

SELinux--disabled

# Do not configure the X Window System

Skipx

# System TimeZone

TimeZone Asia/shanghai

# Install OS instead of upgrade

Install

# Clear the Master Boot Record

Zerombr

# Allow Anaconda to partition the system as needed



Part/boot--fstype Ext4--size=200

Part/--fstype EXT4--size=10000--grow

Part swap--size=16000




%pre

$SNIPPET (' Log_ks_pre ')

$SNIPPET (' Kickstart_start ')

$SNIPPET (' Pre_install_network_config ')

# Enable Installation Monitoring

$SNIPPET (' Pre_anamon ')


%packages

$SNIPPET (' func_install_if_enabled ')

@additional-devel

@base

@chinese-support

@core

@development

Net-snmp

Dstat

Iotop

Pcre-devel

Libcap-devel

Libgcrypt-devel

E2fsprogs-devel

Fuse-devel

CMake

Imake

Lrzsz


%post

$SNIPPET (' Log_ks_post ')

# Start Yum Configuration

$yum _config_stanza

# End Yum Configuration

$SNIPPET (' post_install_kernel_options ')

$SNIPPET (' Post_install_network_config ')

$SNIPPET (' func_register_if_enabled ')

$SNIPPET (' Download_config_files ')


echo "NameServer 202.106.0.20" >>/etc/resolv.conf

echo "NameServer 8.8.8.8" >>/etc/resolv.conf

Chkconfig--level 345 Ip6tables off

Chkconfig--level 345 Lvm2-lvmetad off

Chkconfig--level 345 Lvm2-monitor off

Chkconfig--level 345 NFS Off

Chkconfig--level 345 Nfslock off

Chkconfig--level 345 NetworkManager off

Chkconfig--level 345 acpid off

Chkconfig--level 345 Anacron off

Chkconfig--level 345 APMD off

Chkconfig--level 345 ARPTABLES_JF off

Chkconfig--level 345 ATD Off

Chkconfig--level 345 AutoFS off

Chkconfig--level 345 bluetooth off

Chkconfig--level 345 cpuspeed off

Chkconfig--level 345 cups off

Chkconfig--level 345 Cups-config-daemon off

Chkconfig--level 345 Firstboot off

Chkconfig--level 345 gpm Off

Chkconfig--level 345 ISDN off

Chkconfig--level 345 Mdmonitor off

Chkconfig--level 345 PCMCIA off

Chkconfig--level 345 rawdevices off

Chkconfig--level 345 ReadAhead off

Chkconfig--level 345 readahead_early off

Chkconfig--level 345 RHNSD off

Chkconfig--level 345 RPCGSSD off

Chkconfig--level 345 RPCIDMAPD off

Chkconfig--level 345 RPCSVCGSSD off

Chkconfig--level 345 XFS off

Cd/tmp

This article is from the "Let Me Men Grow Together" blog, please be sure to keep this source http://wujingfeng.blog.51cto.com/5725921/1792485

Cobbler6.4 Linux System Automation installation script

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.