-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
159 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,34 @@ | ||
#Generated by Kickstart Configurator | ||
#platform=AMD64 or Intel EM64T | ||
#platform=x86, AMD64, or Intel EM64T | ||
#version=DEVEL | ||
# Install OS instead of upgrade | ||
install | ||
# Keyboard layouts | ||
keyboard 'pl2' | ||
# Root password | ||
rootpw --iscrypted $1$ZIgQqPR3$OY8ivoaWxmw56pWomI9Xl/ | ||
# Use network installation | ||
url --url="ftp://192.168.0.1/centos" | ||
# System language | ||
lang pl_PL | ||
# Firewall configuration | ||
firewall --disabled | ||
# System authorization information | ||
auth --useshadow --passalgo=sha512 | ||
# Use text mode install | ||
text | ||
firstboot --disable | ||
# SELinux configuration | ||
selinux --enforcing | ||
|
||
#System language | ||
lang en_US | ||
#Language modules to install | ||
langsupport pl_PL --default=en_US | ||
#System keyboard | ||
keyboard us | ||
#System mouse | ||
mouse | ||
#System timezone | ||
timezone --utc Europe/Warsaw | ||
#Root password | ||
rootpw --iscrypted $1$z0BY0NkL$Necy0Mqj6AYqatrm9Pi.Y. | ||
#Initial user | ||
user justuser --fullname "delete me later" --iscrypted --password $1$tmQA0Jxc$/QUItyxu8npyxjoKgEgBv0 | ||
#Reboot after installation | ||
# Network information | ||
network --bootproto=dhcp --device=enp0s3 | ||
# Reboot after installation | ||
reboot | ||
#Use text mode install | ||
text | ||
#Install OS instead of upgrade | ||
install | ||
#Use Web installation | ||
url --url ftp://192.168.0.1/debian/kickstart | ||
#System bootloader configuration | ||
bootloader --location=mbr | ||
#Clear the Master Boot Record | ||
zerombr yes | ||
#Partition clearing information | ||
clearpart --all --initlabel | ||
#System authorization infomation | ||
auth --useshadow --enablemd5 | ||
#Network information | ||
network --bootproto=dhcp --device=eth0 | ||
#Firewall configuration | ||
firewall --disabled | ||
#X Window System configuration information | ||
xconfig --depth=32 --resolution=1024x768 --defaultdesktop=KDE --startxonboot | ||
#Run the Setup Agent on first boot | ||
firstboot --enable | ||
# System timezone | ||
timezone Europe/Warsaw --isUtc | ||
# System bootloader configuration | ||
bootloader --location=none | ||
# Clear the Master Boot Record | ||
zerombr | ||
# Partition clearing information | ||
clearpart --all --initlabel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Pykickxe config file that will be parsed using python's 2.7 ConfigParser | ||
|
||
[DEFAULT] | ||
last_updated = 09.01.17 | ||
ftp_root = /srv/tftp/ | ||
ftp_url = ftp://192.168.0.1 | ||
default_distro = centos | ||
default_autocfg = %(default_distro)s/ks.cfg | ||
default_kernel = %(default_distro)s/images/vmlinuz | ||
default_append = | ||
pxe_cfgPath = ./pxeappend.cfg | ||
|
||
# remember to use helpText with raw parser! | ||
help_text = This program requires that the root from where pxe gets files has following structure: <distro>/<~copied content of iso image~> for everything, especially <distro>/images/pxeboot for kernel and ramdisk, kickstart file in <distro>/ks.cfg or passed manually, (will get copied to util/ks.cfg) | ||
|
||
|
||
[debian] | ||
name = Debian | ||
dir = debian | ||
auto_file = | ||
auto_param = preseed\= | ||
kernel = %(dir)s/linux | ||
append = initrd\=%(dir)/initrd.gz | ||
url = | ||
|
||
|
||
[fedora] | ||
name = Fedora | ||
dir = fedora | ||
auto_file = %(dir)s/ks.cfg | ||
auto_param = ks= | ||
kernel = %(dir)s/images/pxeboot/vmlinuz | ||
append = initrd=%(dir)s/initrd.img inst.repo=%(ftp_url)s/%(dir)s devfs=nomount | ||
url = | ||
|
||
[centos] | ||
name = CentOS | ||
dir = centos | ||
auto_file = %(dir)s/ks.cfg | ||
auto_param = ks= | ||
kernel = %(dir)s/images/pxeboot/vmlinuz | ||
append = initrd=%(dir)s/initrd.img method=%(ftp_url)s/%(dir)s devfs=nomount ip=dhcp | ||
url = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
# TODO: WRewrite #p1 | ||
lastCheckedDate = '03.01.17' | ||
tftpRoot = '/srv/tftp/' | ||
pxe_cfgPath = './pxeappend.cfg' | ||
ks_cfgPath = './ks.cfg' | ||
import ConfigParser | ||
|
||
distroList = ['debian', 'fedora'] | ||
fedoraURL = ( | ||
"http://ftp.icm.edu.pl/pub/Linux/fedora/" | ||
"linux/releases/25/Workstation/x86_64/os/images/pxeboot/*") # doesnt work | ||
debianURL = ( | ||
"http://ftp.nl.debian.org/debian/dists/jessie/" | ||
"main/installer-amd64/current/images/netboot/" | ||
"netboot.tar.gz") | ||
cfg = ConfigParser.SafeConfigParser() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +0,0 @@ | ||
MENU TITLE Autoinstall | ||
PATH util/ | ||
DEFAULT util/menu.c32 | ||
TIMEOUT 20 | ||
ONTIMEOUT Proceeding | ||
ONERROR COM32 reboot.c32 | ||
|
||
LABEL Proceed | ||
KERNEL centos/vmlinuz | ||
APPEND initrd=centos/initrd.img method=ftp://192.168.0.1/centos/ISO devfs=nomount ip=dhcp | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
MENU TITLE Autoinstall | ||
PATH util/ | ||
DEFAULT util/menu.c32 | ||
TIMEOUT 20 | ||
ONTIMEOUT Proceeding | ||
ONERROR COM32 reboot.c32 | ||
|
||
LABEL Automatic $DISTRO_NAME Installer | ||
KERNEL $KERNEL | ||
APPEND $APPEND $KS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters