Skip to content

gr8alex/rhce7env

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RHCE 7 Study/Test Environment powered by Ansible and Vagrant.

Required software before setting up:

If you're using a Mac, Gatekeeper will block virtualbox from installing. All you have to do is go to System Preferences and click Allow under the General tab and rerun installation.

Install at once with the command below (Linux/Mac only)

brew install ansible ; brew install python ; brew cask install vagrant ; brew cask install VirtualBox ; brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb ; brew cask install virtualbox-extension-pack

If you're using a Mac, Gatekeeper will block virtualbox from installing. All you have to do is go to System Preferences and click Allow under the General tab and rerun installation.

Once the above software is installed. Do the following if you're running the environment on Mac/Linux:

  1. Create a separate ~/bin directory and cd to it. (The directory doesn't have to be ~/bin, it can be anything you want.)
  2. Clone the environment repo to it with git clone https://github.com/rdbreak/rhce7env.git
  3. Change to the rhce7env directory that is now in your ~/bin directory.
  4. Run vagrant up --provider virtualbox to deploy the environment

Once the above software is installed. Do the following if you're running the environment on Windows:

  1. Create a separate ~/bin directory and cd to it.  (The directory doesn't have to be ~/bin, it can be anything you want.)
  2. Use your browser of choice and navigate to https://github.com/rdbreak/rhce7env, press the green “Clone or download” button then the “Download ZIP” button.
  3. Once downloaded, unzip the file and move it to the directory you created earlier.
  4. Open CMD prompt and cd to the repo directory then run vagrant up --provider virtualbox to deploy the environment

Also, don't be spooked by any scary red font during the setup process. There are known issues that won't have a negative affect on the environment.

NOTE - You can also use the VirtualBox console to interact with the VMs or through a terminal. If you need to reset the root password, you would need to use the console.

(Optional) Install Github Desktop to make pulling down changes easier

NOTE this requires a free Github account

  1. Navigate to https://desktop.github.com/ and download Github Desktop.
  2. Create or sign in to your account.
  3. Clone or pull changes to respctive repo.

Other Useful Information:

I'm constantly making upgrades to the environments, so every once and awhile run git pull in the repo directory to pull down changes. The first time you run the vagrant up command, it will download the OS images for later use. In other words, it will take longest the first time around but will be faster when it is deployed again. You can run vagrant destroy -f to destroy your environment at anytime. This will erase everything. This environment is meant to be reuseable, If you run the vagrant up --provider virtualbox command after destroying the environment, the OS image will already be downloaded and environment will deploy faster. Once the setup is complete, the ipa server and client for realm TEST.EXAMPLE.COM will already be setup and paired. Deployment should take around 15 minutes depending on your computer. You shouldn't need to access the IPA server during your practice exams. Everything should be provided that you would normally need during an actual exam. Hope this helps in your studies!

It includes three systems:

  • ipa.test.example.com
  • repo.test.example.com
  • system1.test.example.com
  • system2.test.example.com

Network Details:

repo

192.168.55.19

ipa

192.168.55.20

system1

192.168.55.21

system2

192.168.55.22

There is a repo available to use from http://repo.test.example.com/rpms

There are also two additional network interfaces and an additional drive on node1 and node2 to optionally use.

Accessing the systems

Remember to add the IP addresses to your local host file if you want to connect to the guest systems with the hostname. Username - vagrant Password - vagrant

  • For root - use sudo or sudo su Access example - ssh [email protected] or vagrant ssh system1

LDAP users

  • Username = dave, lisa
  • Password = password

Keytab is provided on http://ipa.test.example.com/system.keytab

Help

If you're having problems with the environment, please submit an issue by going to the ISSUES tab at the top. If you have more questions, looking for practice exams to use against this environment, or just looking for a fantastic Red Hat community to join, please navigate to #practiceexam in the Red Hat Certs Slack Workspace.