Skip to content

yairpod/SEAPATH_CentOS_Stream_Kickstart

Repository files navigation

SEAPATH_CentOS_Stream_Kickstart

Reference Kickstart file for the installation of CentOS Stream for the LF SEAPATH project. CentOS Stream uses the Anaconda Installer which allows for automation and unattended installations via kickstart files. See more at: https://pykickstart.readthedocs.io/en/latest/

Customization

Since the kickstart file defines installation parameters and each installation setup is different customization is recommended, Moreover since it includes local passwords and ssh keys some items are mandatory.

Mandatory

change the authorized_keys files (user and root) with your own Edit the seapath_kickstart.ks file and change the lines:

sshkey --username=virtu "ssh-rsa XXX"
sshkey --username=ansible "ssh-rsa XXX"
sshkey --username=root "ssh-rsa XXX"

Replacing the quoted section with the ssh key of your choice.

Depending on your network configuration Replace network device, ip and gateway and the network line.

Depending on your Disk configuration Replace The installation disk device in lines:

ignoredisk --only-use=/dev/sda
part pv.0 --fstype=lvmpv --ondisk=/dev/sda  --size=20992
part /boot/efi --fstype=efi --ondisk=/dev/sda --size=512 --asprimary

Remove the line starting with ignoredisk if you wish to install on more then one disk.

Optional

The default password for root and unprivileged users is "toto". To change it, replace rootpw with encrypted root password.

In the lines beginning with user change the value of --password= to encrypted passwords of your choice.

Please consult the kickstart Documentation on https://pykickstart.readthedocs.io/en/latest/kickstart-docs.html

Usage

To install an image with the Kickstart file download an installation ISO such as from: https://centos.org/download/#centos-stream-9

Then you can either add the kickstart file to the ISO using the mkksiso command. Example:

mkksiso seapath_kickstart.ks CentOS-Stream-9-latest-x86_64-dvd1.iso seapath.iso

Or configure your server to use the kickstart file via network.

Instructions to create VMs

Check README-vms.md for instructions to create VMs. Once the SEAPATH nodes are installed, apply the SEAPATH playbooks.

Apply SEAPATH playbooks

Create Container to run Ansible 2.10

Clone the seapath ansible repository:

# git clone https://github.com/seapath/ansible.git

Containerfile (in this git repository) contains instructions to create a CentOS 9 based container. To build the container:

# podman build --tag centos4seapath .

Then run the container (note: should modify /path/to/seapath-ansible-git/ and /home/user/, the user which SSH keys were used to create the Seapath ISO files):

# podman run --privileged --rm --mount type=bind,source=/path/to/seapath-ansible-git/,target=/root/ansible/ --mount type=bind,source=/home/user/.ssh/,target=/root/.ssh/ -it centos4seapath

Inside the container, cd to /root/ansible/, then run

# ./prepare.sh

To pull dependencies necessary by the SEAPATH Ansible scripts.

About

Kickstart file to install CentOS Stream for the LF SEAPATH project.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •