- Red Hat Enterprise Linux Server Cookbook
- William Leemans
- 247字
- 2021-07-30 09:54:23
Publishing your kickstart file using httpd
You can save your kickstart file to a USB stick (or any other medium), but this becomes a bit cumbersome if you need to install multiple systems in different locations.
Loading kickstart files over the network from the kernel line during an install only supports NFS, HTTP, and FTP.
In this recipe, I choose HTTP as it is a common technology within companies and easy to secure.
How to do it…
Let's start by installing Apache httpd
, as follows:
- Install Apache
httpd
through the following command:~]# yum install -y httpd
- Enable and start the
httpd
daemon, as follows:~]# systemctl enable httpd ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service' ~]# systemctl start httpd
- Create a directory to contain the kickstart file(s) by running the following command:
~]# mkdir -p /var/www/html/kickstart ~]# chown apache:apache /var/www/html/kickstart ~]# chmod 750 /var/www/html/kickstart
- Copy your kickstart file to this new location:
~]# cp kickstart.ks /var/www/html/kickstart/
- In a browser, browse to the kickstart directory on your web server, as shown in the following screenshot:
There's more…
In this way, you can create multiple kickstart files, which will be available from anywhere in your network.
Additionally, you could use CGI-BIN, PHP, or any other technology that has an Apache module to dynamically create kickstart files based on the arguments that you specify in the URL.
An alternative to creating your own solution for dynamic kickstart files is Cobbler.
See also
For more info on Cobbler, go to http://cobbler.github.io/.
- Web應用系統開發實踐(C#)
- Java程序設計與開發
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- 數字媒體應用教程
- PyTorch自動駕駛視覺感知算法實戰
- 云原生Spring實戰
- Learning OpenStack Networking(Neutron)(Second Edition)
- 深入剖析Java虛擬機:源碼剖析與實例詳解(基礎卷)
- Microsoft 365 Certified Fundamentals MS-900 Exam Guide
- 編程可以很簡單
- C++ System Programming Cookbook
- AMP:Building Accelerated Mobile Pages
- FusionCharts Beginner’s Guide:The Official Guide for FusionCharts Suite
- Elasticsearch實戰(第2版)
- 深入解析Java虛擬機HotSpot