Hands-On Evaluation 1

Introduction



Prerequisites:

Before you start this lab you must have:

Grading:

You will submit a report generated by the script, HostInfo_01.sh. This script is part of a tar archive for this evaluation.

Grading Scheme

web01 built and patched2
Apache installed on web012
Kickstart modifications3
Patch added to yoda Updates repo3
Total10

Overview:

Today you will built your first production server - talk about a test! You will be building a web server, web01.




Part A: Build and Patch web01

  1. Patch from the YUM repos on yoda.
  2. Make sure that web01 only looks to yoda for YUM repos.
  3. Set static IP addresses
  4. Set static hostname
  5. Add yoda and web01 to /etc/hosts on web01

Part B: Install Apache on web01

  1. Install Apache
  2. Configure Apache to start automatically
  3. Start Apache
  4. Create a custom home page containing the text Welcome to web01

Part C: Enhance your Kickstart File

Your automated builds are going very well and saving you a lot of time. Encouraged by this you decide to modify your default Kickstart file to automate a few tasks you perform on every system after installation.

  1. Backup your Kickstart file to /var/www/html/Kickstart/default.ks.back
  2. Create a user on every new system with user_name=rocky and password=donttellbjm using the user command in your Kickstart file. (Note: a plain text password in your default.ks will cost you one point)
  3. Configure rocky's .bashrc with the alias lt='ls -lrt'

Part D: Add a Patch to Updates

A newer version of bash has been approved for deployment. It will be added to the miniPatch repo on yoda.

  1. Install the command you will need to update the repo data.
    yum install createrepo_c
    
  2. Copy bash-4.4.19-14.el8.x86_64.rpm to /var/www/html/miniPatch
  3. Update the repo data for miniPatch
    createrepo /var/www/html/miniPatch
    
  4. Check our work from web01
    yum clean all
    yum list bash
    
  5. Update web01 to install bash-4.4.19-14

Note: This task is not directly from a lab. Pre-test practice is recommended.


Part E: Submitting your work for grading

  1. Run HostInfo_1.sh on web01 to produce web01_report.html
  2. Submit web01_report.html to Canvas