GithubHelp home page GithubHelp logo

kriipke / linux-deployment-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 225 KB

Makefile to do the laborious work of generating the needed files to host for a Linux deployment server.

Makefile 100.00%
deployment-automation linux-server-auto-install deployment-server

linux-deployment-server's Introduction

Linux Deployment Server Files

Configure Services

These files are basically all you need to run a Linux deployment server. There are 3 directories, each used by a separate service in the provisioning process:

Host the following files:

  1. ./mirror: Host via NFS

  2. ./pxelinux: Host via TFTP. Once Hosted set the correct IP in your DHCP server

  3. ./ftp: Host via FTP. Once Hosted set the correct IP of the FTP server in ./pxelinux/pxelinux.cfg/default.

Generate Needed Files to Host

0. Edit Makefile

You can edit the first 3 arguments in the Makefile to avoid passing parameters to make on the command line.

LINUX_DISTRO := RHEL
DISTRO_RELEASE := 9.2
ISO_FILENAME := rhel-baseos-9.1-x86_64-dvd.iso

Edit these 3 values (assuming ISO_FILENAME is the name of a file in the ./iso directory) and you can just type

make pxelinux
make bootimgs
make osrepo

1. Copy PXE Loaders

The following really only needs to be done once. The rest of the steps you will repeat with each ISO you create (of the same architecture, e.g. x86_64)

make ISO_FILENAME=rhel-baseos-9.1-x86_64-dvd.iso pxelinux

Will create the following files:

pxelinux/pxelinux.0
pxelinux/menu.c32
pxelinux/ldlinux.c32
pxelinux/libutil.c32
pxelinux/libcom32.c32

These are the bootloaders needed to run the PXE boot and load pxelinux/pxelinux.cfg/default

2. Copy Boot Images

make ISO_FILENAME=rhel-baseos-9.1-x86_64-dvd.iso LINUX_DISTRO=RHEL DISTRO_RELEASE=9.1 bootimgs

Will create the following files:

pxelinux/images/RHEL-9.1/vmlinuz
pxelinux/images/RHEL-9.1/initrd.img

This will create the boot images needed for whatever OS is fed in in the ISO argument. For example if rhel-baseos-9.1-x86_64-dvd.iso

3. Copy OS Repostitory

make ISO_FILENAME=rhel-baseos-9.1-x86_64-dvd.iso LINUX_DISTRO=RHEL DISTRO_RELEASE=9.1 osrepo

This will clone the installation DVD to the ./mirror directory such that there is a file structure resemebling the following:

mirror/RHEL-9.1/AppStream
mirror/RHEL-9.1/BaseOS
mirror/RHEL-9.1/EFI
mirror/RHEL-9.1/EULA
mirror/RHEL-9.1/GPL
mirror/RHEL-9.1/RPM-GPG-KEY-redhat-beta
mirror/RHEL-9.1/RPM-GPG-KEY-redhat-release
mirror/RHEL-9.1/extra_files.json
mirror/RHEL-9.1/images
mirror/RHEL-9.1/isolinux
mirror/RHEL-9.1/media.repo

Edit Configuration Files

Edit pxelinux/pxelinux.cfg/default

You’ll now want to go in and add the boot options for the new OS you just added.

Edit ks.cfg

Go in and add your desired password and configuration in the kickstart files.

linux-deployment-server's People

Contributors

kriipke avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.