Skip to content

Instantly share code, notes, and snippets.

@azilber
Created December 3, 2017 10:04
Show Gist options
  • Save azilber/db03640d255221fa90f90ba50f539abb to your computer and use it in GitHub Desktop.
Save azilber/db03640d255221fa90f90ba50f539abb to your computer and use it in GitHub Desktop.

Revisions

  1. azilber created this gist Dec 3, 2017.
    53 changes: 53 additions & 0 deletions anaconda-ks.cfg
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,53 @@
    #version=DEVEL
    # System authorization information
    auth --enableshadow --passalgo=sha512
    # Use CDROM installation media
    cdrom
    # Use graphical install
    graphical
    # Run the Setup Agent on first boot
    firstboot --enable
    ignoredisk --only-use=sda,sdb
    # Keyboard layouts
    keyboard --vckeymap=us --xlayouts='us'
    # System language
    lang en_US.UTF-8

    # Network information
    network --bootproto=static --device=enp3s4f0 --gateway=GWIP --ip=IP --nameserver=8.8.4.4 --netmask=255.255.255.192 --ipv6=auto --activate
    network --bootproto=dhcp --device=enp3s4f1 --onboot=off --ipv6=auto
    network --hostname=HOSTNAME
    up2date

    # Root password
    rootpw --iscrypted sha512pass
    # SELinux configuration
    selinux --disabled
    # System services
    services --enabled="chronyd"
    # System timezone
    timezone Asia/Kuala_Lumpur --isUtc
    user --groups=wheel --name=auser --password=sha512pass --iscrypted --gecos="auser"
    # System bootloader configuration
    bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
    autopart --type=lvm
    cep --agree
    # Partition clearing information
    clearpart --all --initlabel --drives=sda,sdb --disklabel=gpt

    %packages
    @^cloudserver
    @base
    @core
    @ps
    @qemu
    @templates
    @vz
    chrony
    kexec-tools

    %end

    %addon com_redhat_kdump --enable --reserve-mb='auto'

    %end