diff options
author | Jon Clausen <jac@nordu.net> | 2018-07-11 13:26:11 +0200 |
---|---|---|
committer | Jon Clausen <jac@nordu.net> | 2018-07-11 13:26:11 +0200 |
commit | 744ba24aff5b7af05a1c82503653e53a112fe3d6 (patch) | |
tree | 07972f62f404ae0c76c74adde305cc5ce5ab1af9 /ks-template |
added some initial files/placeholders
Diffstat (limited to 'ks-template')
-rw-r--r-- | ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks new file mode 100644 index 0000000..9aaa5e3 --- /dev/null +++ b/ks-template/hw/supermicro/SYS-5018D-FN8T/dtn-10g.ks @@ -0,0 +1,92 @@ +#version=DEVEL +# System authorization information +auth --enableshadow --passalgo=sha512 +# Use CDROM installation media +#cdrom +# Use URL as install media +url --url=http://KSERVER/install/centos/7/os/x86_64/ +#url --url=http://mirror.centos.org/centos/7/os/x86_64/ +# Use text mode install +text +# Run the Setup Agent on first boot +firstboot --enable +ignoredisk --only-use=sda +# Keyboard layouts +keyboard --vckeymap=us --xlayouts='' +# System language +lang en_US.UTF-8 + +# Network information +network --bootproto=static --device=eno1 --gateway=ENO1GATEWAY --ip=ENO1IP --netmask=ENO1NETMASK --nameserver=ENO1NAMESERVERS --ipv6=auto +network --bootproto=static --device=eno2 --onboot=off --ipv6=auto +network --bootproto=static --device=eno3 --onboot=off --ipv6=auto +network --bootproto=static --device=eno4 --onboot=off --ipv6=auto +network --bootproto=static --device=eno5 --onboot=off --ipv6=auto +network --bootproto=static --device=eno6 --onboot=off --ipv6=auto +network --bootproto=static --device=eno7 --onboot=off --ipv6=auto +network --bootproto=static --device=eno8 --ip=ENO8IP --netmask=ENO8NETMASK --nodefroute --onboot=off --ipv6=auto +network --hostname=HOSTNAME + +# Root password +rootpw --iscrypted $6$OZ1kzVgDD3xDqL65$0q/XDwu7oSGkI8FJ/ykOIi7Pm0m0kNHC5kw7FLWsmOw3KLHCgoNHAzcJJM0nJdaJ7oqYJbxf86LgQK2zqTGX/. +# System services +services --enabled="chronyd" +# Do not configure the X Window System +skipx +# System timezone +timezone Europe/Copenhagen --isUtc +user --name=jac --password=$6$t3nu7Hd9pAQCpy7J$uRbZOadIBN7AeRdQwG67ac4OD5nDCK9vb2wWlR1PWwovE7ssu/MngMsViP71ITVuij84.aF6a2c5IhTcYZv.0. --iscrypted --gecos="Jon Clausen" --groups=wheel +# System bootloader configuration +bootloader --append=" crashkernel=auto" --location=mbr --boot-drive=sda elevator=deadline console=tty1 console=ttyS1,115200n8 +autopart --type=lvm +# Partition clearing information +clearpart --all --initlabel --drives=sda + +# Boot the installed system automatically once the install finishes; +#reboot + +%packages +@core +chrony +kexec-tools + +%end + +%pre +# %pre +%end + +%post +# %post +# disallow root login via ssh: +/bin/sed -i '' -e 's/#PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config +# try to get access to the screen: +exec < /dev/tty6 > /dev/tty6 +chvt 6 +# backticks don't work, but $() does +CosmosHash=$(cat /proc/cmdline | sed -e 's/.*hash=//') + +if [ "x${CosmosHash}" = "x" ] +then + echo "cannot get cosmos hash from cmdline, not running cosmos-bootstrap" +elif [ "${CosmosHash}" = "disabled" ] +then + echo "cosmos bootstrap disabled on kernel cmdline" +else + curl -o /bin/cosmos-boostrap "https://git.nordu.net/?p=ndn-iaas.git;a=blob_plain;f=bootstrap/cosmos-bootstrap;hb=HEAD" + chmod +x /bin/cosmos-boostrap + /bin/cosmos-boostrap "http://gitproxy.nordu.net/ndn-sysconf.git" ${CosmosHash} HOSTNAME.DOMAIN +fi +# return to the first vt +chvt 1 +%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 |