This repo brings up an Linux Foundation Certified Engineer (LFCE) Centos 7 exam simulation environment with the help of Vagrant. Several nodes are created and you perform various tasks on each during the exam. The environment has the following properties:
- Each node has all of the other nodes in its
/etc/hosts
file. - The starting node is
box
.- You can
ssh
from box to any other node in the environment. - Only the
box
node canssh
to other nodes in the environment. After completing a task, return to thebox
node before connecting to another node.
- You can
- Root access can be obtain with
sudo -i
on any node.
You can create tasks to complete based on the LFCE domains and competencies.
If you have not already installed vagrant and VirtualBox, you can run
bash lib/prerequisites.sh
Bring up the exam environment with
bash up_exam.sh
This automatically connects you to the box
node in the exam environment. Prepare the systems as you prefer using packages from standard repos, for example:
sudo -i
yum install -y pssh
pssh -H box -H node1 -H node2 "yum install -y tmux bash-completion bash-completion-extras && mandb"
exec bash
man -k ... # search for commands by name, description
man -wK ... # search for commands in man pages
yum provides */binary # search for package providing a binary
rpm -qf $(which binary) # which installed package provides a binary
yum install setroubleshoot-server; sealert -a /var/log/audit/audit.log # Suggest resolutions for SELinux AVCs
Destroy the exam environment with
bash destroy_exam.sh
Leave a Reply