We deploy the real environment, you take the scenario-based labs on us. Self-Paced, from anywhere, at any time.
You will be provided with a single Linux Academy Ubuntu 16.04 LTS image. This will allow you to:
1. Install Docker and start the service
2. Add the tools and utilities to build the image
3. Download the associated files from Github
4. Create the Docker image
5. Deploy and Test the Docker container from that image
Identify and Report on High CPU/Memory Utilization and Kill or Adjust Process Priorities. In order to do that, we need to generate a process that will cause high CPU utilization. Before you begin the scenario below, be sure to do the following:
1. Create a file with the following command:
dd if=/dev/urandom of=testfile count=20 bs=1024k
2. Create a file called 'cputest.sh' with the following code:
while [ 1 ]
i=`expr $i + 1`
echo "Iteration: $i"
3. Make the script executable
chmod 755 cputest.sh
4. Run the command
Install software. Check where files have come from. Install a remote repository and query it for information. Delete software. Remote repository information for adding:
name=Extra Packages for Enterprise Linux 7 - $basearch
Repository Key File Command:
wget -O /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 https://getfedora.org/static/352C64E5.txt
Learn how to start using the FirewallD tool within Red Hat Enterprise 7. Install and configure firewall rules, test and verify how the rules work between the two servers provided and your remote machine.
Before beginning this scenario, please perform the following steps once your system is provisioned:
A. Log into Lab Server 1 and change the password for the linuxacademy user.
B. Log into Lab Server 1 and change the password for the linuxacademy user.
Note: all tasks to be performed as the root user. Or via sudo.
Use ansible-vault to manage a vault encrypted file. Do the following tasks that build on tasks performed in lab 1. If using a different or new server then first perform the tasks in Lab 1.
Edit an encrypted file.
Rekey an encrypted file.
View an encrypted file.
Decrypt an encypted file.
Encrypt the file again.
Use the file in a playbook again.
Create a playbook that creates a new user on the server. Check to ensure that user has been created. Then copy a file you have created to that users home folder. Change the permissions of the file to 0755. Check to ensure its been created there. file is called program1.sh and should be in /opt/ folder.
Create a playbook that uploads a file (you create empty) to the target server with 0755 permissions. Adds a line to the file with the ansible hostname and use the lineinfile module to look for the words hostname2= and if not there then add that to the file.
Check to see if the file was created and has the content.
Create a template with a variable for server hostname. Create a playbook that installs apache and uses a template to create the /var/www/html/index.html file on the target server. The hostname must be in the index.html file. ADD multiple variables to the template and export them to the index.html