zoukankan      html  css  js  c++  java
  • kickstart模板文件

    centos7.4.cfg 基本配置文件

    #CentOS7
    #platform=x86, AMD64, or Intel EM64T
    #System language
    lang en_US
    #System keyboard
    keyboard us
    #Sytem timezone
    timezone Asia/Shanghai
    #Root password
    rootpw --iscrypted $default_password_crypted
    #Use text mode install
    text
    #Install OS instead of upgrade
    install
    #Use NFS installation Media
    url --url=$tree
    #System bootloader configuration
    bootloader --location=mbr --append="net.ifnames=0 biosdevname=0"
    #Clear the Master Boot Record
    zerombr
    #Partition clearing information
    clearpart --all --initlabel
    #Disk partitioning information
    part /boot --fstype xfs --size 1024 --ondisk sda
    part swap --size 16384 --ondisk sda
    part / --fstype xfs --size 1 --grow --ondisk sda
    #System authorization infomation
    auth --useshadow --enablemd5
    #Network information
    $SNIPPET('network_config')
    #network --bootproto=dhcp --device=eth0 --onboot=on
    # Reboot after installation
    reboot
    #Firewall configuration
    firewall --disabled
    #SELinux configuration
    selinux --disabled
    #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
    sysstat
    iptraf
    ntp
    lrzsz
    ncurses-devel
    openssl-devel
    zlib-devel
    OpenIPMI-tools
    tree
    nmap
    screen
    wget
    %end
    %post
    systemctl disable postfix.service
    %end

    centos7.4.cfg 个性化配置文件

    #CentOS7
    #platform=x86, AMD64, or Intel EM64T
    #System language
    lang en_US
    #System keyboard
    keyboard us
    #Sytem timezone
    timezone Asia/Shanghai
    #Root password
    rootpw --iscrypted $default_password_crypted
    #Use text mode install
    text
    #Install OS instead of upgrade
    install
    #Use NFS installation Media
    url --url=$tree
    #System bootloader configuration
    bootloader --location=mbr --append="net.ifnames=0 biosdevname=0"
    #Clear the Master Boot Record
    zerombr
    #Partition clearing information
    clearpart --all --initlabel
    #Disk partitioning information
    part /boot --fstype xfs --size 1024 --ondisk sda
    part swap --size 16384 --ondisk sda
    part / --fstype xfs --size 1 --grow --ondisk sda
    #System authorization infomation
    auth --useshadow --enablemd5
    #Network information
    $SNIPPET('network_config')
    #network --bootproto=dhcp --device=eth0 --onboot=on
    # Reboot after installation
    reboot
    #Firewall configuration
    firewall --disabled
    #SELinux configuration
    selinux --disabled
    #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
    sysstat
    iptraf
    ntp
    lrzsz
    ncurses-devel
    openssl-devel
    zlib-devel
    OpenIPMI-tools
    tree
    nmap
    screen
    wget
    mariadb-server
    %end
    # Post Installed Shell Scripts
    %post
    # SSH Config
    sed -ri '/UseDNS/cUseDNS no' /etc/ssh/sshd_config
    systemctl restart sshd
    #Install Saltstack MInion
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
    # YUM Install SaltStack
    yum clean all && yum makecache
    yum install salt-minion -y
    # Config Minion
    sed -ri '/#master: /cmaster: 192.168.56.11' /etc/salt/minion
    systemctl start salt-minion
    systemctl enable salt-minion
    # Install SaltStack
    #wget -O /tmp/salt-minion.sh http://192.168.56.11/salt-minion.sh
    #chmod +x /tmp/salt-minion.sh && sh /tmp/salt-minion.sh
    #rm -f /tmp/salt-minion.sh
    %end

    centos6.9.cfg 配置⽂文件

    #platform=x86, AMD64, or Intel EM64T
    # System authorization information
    auth --useshadow --enablemd5
    # System bootloader configuration
    bootloader --location=mbr
    # Partition clearing information
    clearpart --all --initlabel
    #Partition information
    part /boot --fstype ext4 --size 1024 --ondisk sda
    part swap --size=1500
    part / --fstype ext4 --size 1 --grow --ondisk sda
    # Use text mode install
    text
    # Firewall configuration
    firewall --disable
    # 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 profile, include
    them here.
    $yum_repo_stanza
    # Network information
    $SNIPPET('network_config')
    #network --bootproto=dhcp --device=em1
    # Reboot after installation
    reboot
    #Root password
    rootpw --iscrypted $default_password_crypted
    # 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
    %packages
    @base
    @compat-libraries
    @debugging
    @development
    tree
    nmap
    sysstat
    lrzsz
    dos2unix
    telnet
    %pre
    $SNIPPET('log_ks_pre')
    $SNIPPET('kickstart_start')
    $SNIPPET('pre_install_network_config')
    # Enable installation monitoring
    $SNIPPET('pre_anamon')
    %post
    %end
  • 相关阅读:
    不拖控件的asp.net编程方法——第1回
    实习的故事之——第7天
    最近遇到的问题总结!
    实习的故事之——第5天
    asp.net MVC最简单的增删查改!(详)
    实习的故事之——第3天
    如何去除CFormView的Scrollbar
    Mac java环境配置
    【Kafka入门】Kafka基础结构和知识
    [原创]git使用入门
  • 原文地址:https://www.cnblogs.com/songguoyou/p/11883152.html
Copyright © 2011-2022 走看看