Skip to content

myllynen/misc

Folders and files

NameName
Last commit message
Last commit date
Aug 15, 2022
Sep 13, 2024
May 22, 2023
Sep 18, 2023
Jan 10, 2025
Nov 8, 2024
Nov 12, 2024
Sep 26, 2024
Mar 26, 2025
Feb 4, 2025
Feb 4, 2025
Sep 26, 2024
Feb 3, 2025
Nov 8, 2024
Aug 28, 2023
May 17, 2022
Jan 22, 2025
Sep 26, 2024
Jan 24, 2025
Sep 25, 2023
Sep 24, 2024
Sep 24, 2024
Oct 28, 2024
Oct 28, 2024
Sep 21, 2023
Jan 20, 2025
Mar 25, 2025
Jan 10, 2025
Oct 7, 2024
Oct 28, 2024

Repository files navigation

Miscellaneous stuff

License: GPLv2 License: GPLv3

Nothing but random stuff here.

Contents

  • ca-setup
    • Simple scripts to setup self-signed CA and certs
  • git-setup
    • Basic steps to setup local (test) Git repo infra
  • ansible.cfg
    • Ansible configuration file with most relevant settings
  • cross_node_ssh.yml
    • Ansible playbook to configure cross-node SSH key authentication
  • fedora_init.yml
    • Ansible playbook to initialize a Fedora system after installation
  • qcow2-to-box
    • Simple script to create Vagrant boxes from Qcow2 images
  • report_local_users.yml
    • Ansible playbook to report local users from systems
  • rhel-7-base.ks
    • RHEL 7 base installation kickstart example (see below)
  • rhel-8-base.ks
    • RHEL 8 base installation kickstart example (see below)
  • rhel-9-base.ks
    • RHEL 9 base installation kickstart example (see below)
  • rhel_8_init.yml
    • Ansible playbook to initialize a RHEL 8 system after installation
  • rhel_9_init.yml
    • Ansible playbook to initialize a RHEL 9 system after installation
  • setup-ansible-gpg-keyring
    • Script to set up Ansible GPG keyring for RH collection signatures
  • setup-ansible-venvs
    • Script to set up Ansible/Python venvs for many Ansible versions
  • vagrant.ks
    • Kickstart snippet to make Fedora/RHEL installation Vagrant-ready

RHEL 7 Footprint Comparison

The following table illustrates RHEL 7 image footprint with various installation options.

Last updated for RHEL 7.6 Server (later releases may have slightly different characteristics).

  1. RHEL Server default installation (using all defaults with the GUI installer)
  2. Red Hat RHEL 7 Qcow2 image (from https://access.redhat.com/downloads/) (has no firewalld running)
  3. rhel-7-base.ks based kickstart installation
  4. "Ultra lean" installation using rhel-7-base.ks with --excludedocs and other %packages options listed, all additional packages listed in %packages section omitted, firewalld, kdump, and tuned services disabled, using network.service and dhclient instead of NetworkManager, auth and firewall directives omitted (due to depending on excluded packages)
  5. "Ultra lean" installation with also SELinux disabled

NB. The linux-firmware package takes 176M on disk if installed, it is removed by the kickstart %post script but in case of a kernel update it will be installed again, even if not needed on VMs.

Variant 1 2 3 4 5
RPMs 342 345 267 198 194
Disk usage 1176M 950M 581M 421M 400M
RAM usage 102M 76M 90M 43M 40M

RHEL 8 Footprint Comparison

The following table illustrates RHEL 8 image footprint with various installation options.

Last updated for RHEL 8.0 (later releases may have slightly different characteristics).

See also this RFE for comments about the official RHEL 8 Qcow2 image.

  1. RHEL Server default installation (using all defaults with the GUI installer for a Minimal installation)
  2. Red Hat RHEL 8 Qcow2 image (from https://access.redhat.com/downloads/) (has no firewalld running)
  3. rhel-8-base.ks based kickstart installation
  4. "Ultra lean" installation using rhel-8-base.ks with --excludedocs and other %packages options listed, all additional packages listed in %packages section omitted, firewalld, kdump, and tuned services disabled, using network.service and dhclient instead of NetworkManager, authselect and firewall directives omitted (due to depending on excluded packages)
  5. "Ultra lean" installation with also SELinux disabled (see https://bugzilla.redhat.com/show_bug.cgi?id=1660142)

NB. The linux-firmware package takes 291M on disk if installed, it is removed by the kickstart %post script but in case of kernel update it will be installed again, even if not needed on VMs.

See also this RFE for discussion to possibly change RHEL firmware packages as weak dependencies for RHEL 8 kernel.

Variant 1 2 3 4 5
RPMs 406 437 330 232 226
Disk usage 1491M 1279M 709M 515M 463M
RAM usage 179M 148M 161M 103M 70M

See Also

See also https://github.com/myllynen/rhel-image.

See also https://github.com/myllynen/ansible-packer.

See also https://github.com/myllynen/rhel-ansible-roles.

License

GPLv2+

About

Random stuff

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published