R&D/클라우드

centos7.3 kickstart

sunshout 2017. 1. 22. 20:59

#version=DEVEL

# System authorization information

auth --enableshadow --passalgo=sha512

# Use network installation

url --url="http://ftp.daum.net/centos/7.3.1611/os/x86_64/"

repo --name="New_Repository"

# Use graphical install

graphical

# Run the Setup Agent on first boot

firstboot --enable

ignoredisk --only-use=vda

# Keyboard layouts

keyboard --vckeymap=us --xlayouts='us'

# System language

lang en_US.UTF-8


# Network information

network  --bootproto=dhcp --device=eth0 --ipv6=auto --activate

network  --bootproto=dhcp --device=eth1 --ipv6=auto --activate

network  --bootproto=dhcp --device=eth2 --ipv6=auto --activate

network  --hostname=localhost.localdomain


# Root password

rootpw --iscrypted $6$Jfk5JS00vrQsM09F$lv22O6NlkPuk3e1ASizkX32Z04KhXaRMbZu9z1CXq6.kFe.aPSj6V.PoKGAQh6MyGTed2eeo.5cMpT8VYNLVd.

# System services

services --enabled="chronyd"

# System timezone

timezone Asia/Seoul --isUtc

# System bootloader configuration

bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=vda

autopart --type=lvm

# Partition clearing information

clearpart --none --initlabel


%packages

@^minimal

@compat-libraries

@core

chrony

kexec-tools


%end


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


%end


%anaconda

pwpolicy root --minlen=6 --minquality=50 --notstrict --nochanges --notempty

pwpolicy user --minlen=6 --minquality=50 --notstrict --nochanges --notempty

pwpolicy luks --minlen=6 --minquality=50 --notstrict --nochanges --notempty

%end