-
Notifications
You must be signed in to change notification settings - Fork 0
/
centos7.tpl
72 lines (65 loc) · 2.33 KB
/
centos7.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use network installation
url --url="ftp://192.168.0.101/pub/centos7"
# Use graphical install
graphical
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=em1 --ipv6=auto --activate
network --bootproto=dhcp --device=em2 --onboot=off --ipv6=auto
network --bootproto=dhcp --device=p1p1 --onboot=off --ipv6=auto
network --bootproto=dhcp --device=p1p2 --onboot=off --ipv6=auto
network --hostname={{hostname}}
%post --nochroot
echo "UseDNS yes" >> /etc/ssh/sshd_config
echo "ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAIEAv4z5uSSJBLqh1fJ8B/KiYr8gc4DlpVOX34hLPs1L907VK6jjL43g0NpYHGzCTZksoqC8RA+HLkVxIW0A2oI86usvOLE61Yr52fs9GWRmHxEx36iAcqueC7UIgK846CcMSZGhinUnc6OF1+gQnlTUx2mQ9yaa59yT4se9RC+IC48= [email protected]" /root/.ssh/authorized_keys
%end
# Root password
rootpw --iscrypted $6$y7FVhvmPPw5S3oKv$qXIslwz1DuFq369DN4m4hNvag4MDgmudowWUfq/i2BkuY0QKlmVzapx5XNf09mrhqVUDIoW5TzExFTiLpaaPo1
# System services
services --enabled="chronyd"
# System timezone
timezone America/Los_Angeles --isUtc
# System bootloader configuration
bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --all --initlabel --drives=sda
# Disk partitioning information
part /boot --fstype="xfs" --size=300
part swap --asprimary --fstype="swap" --size=1024
part pv.704 --fstype="lvmpv" --ondisk=sda --size=850144
part / --fstype="xfs" --ondisk=sda --size=102400
volgroup centos_data --pesize=4096 pv.704
logvol /data --fstype="xfs" --size=747740 --name=data --vgname=centos_data
logvol /home --fstype="xfs" --size=102400 --name=home --vgname=centos_data
%packages
@^compute-node-environment
@base
@core
@debugging
@development
@hardware-monitoring
@infiniband
@network-file-system-client
@performance
@remote-system-management
@scientific
@system-admin-tools
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end