An open API service indexing awesome lists of open source software.

https://github.com/bcambl/ksconfig

Custom kickstart user input scripts
https://github.com/bcambl/ksconfig

Last synced: 10 months ago
JSON representation

Custom kickstart user input scripts

Awesome Lists containing this project

README

          

ksconfig
========

### Description:

These scripts were created for use with a kickstart file via %pre and %post sections.
The included scripts will allow you to provide a hostname, IP addressing, as well as
specify a standard disk partiton/volume configuration with the ability to make size tweaks.

This is especially useful if you would like to kickstart a handful of servers without
the need of more advanced solutions like cobbler. I have tested these scripts for
use with CentOS7 but should also be compatible with RHEL and Fedora based linux
distributions.

### Instructions:

1) Edit the settings within the kspre.py script to suit your needs.

2) View the sample file to include these scripts in your %pre and %post sections
of your kickstart file.

3) Add *net.ifnames=0*, *biosdevname=0*, and *inst.geoloc=0* to your **boot:** along with your
kickstart file path.

This ensures that traditional interface names are used. ie: eth0, eth1, etc.

```
linux net.ifnames=0 biosdevname=0 inst.geoloc=0 ks=
```

### Screenshots

##### Server Location
Specify pre-defined server location/domain. The 'custom' option will prompt
user for a domain and a short description.

(enabled/disabled in kspre.py settings if not needed)

![Select available disk](screenshots/select_location.png)

##### Hostname and IP configuration

Second interface is optional. Disable/enable via kspre settings

![Select available disk](screenshots/hostname-ip_config.png)

##### Validate IP's

Do not allow CIDR notation, invalid IP's, or Blank IP fields

![Select available disk](screenshots/ip_validations.png)

##### Select disck for installation of OS

![Select available disk](screenshots/available_disks.png)

##### Modify default partitioning

Modify partitions of 'standard partitioning' scheme

(standard partitioning scheme can be changed by modifying the script)

![Select available disk](screenshots/configure_disk.png)

##### Verify Configuration

![Select available disk](screenshots/confirm_host_ip.png)

![Select available disk](screenshots/confirm_disk_part.png)

##### Accept configuration or Re-Configure

The 're-configure' option will enable IP validaions if previously skipped

![Select available disk](screenshots/confirm_or_re-config.png)

### Author
Blayne Campbell (https://github.com/bcambl)

### License
BSD