Final Project Milestone 2 - Bobleoble/tech-journal GitHub Wiki
Milestone 2
Machine Configuration
The dhcp01 (CentOS 7 Minimal) machine handled the range of 10.0.5.100 to 10.0.5.125, with dhcp02 (also CentOS 7 Minimal) going from 10.0.5.126 to 10.0.5.150. However, in order to ensure both dhcp machines are operational, dhcp01 was only told to use one single IP for its range, so that wk2 would be able to verify that dhcp02 worked as well. The mgmt02 machine was a standard Ubuntu cloud server with Ansible installed on it, and the util01 machine was a standard CentOS 7 Minimal machine simply configured and joined to the domain unlucky.local.
Machine Addresses:
- dhcp01: 10.0.5.15
- dhcp02: 10.0.5.16
- mgmt02: 10.0.5.11
- util01: 10.0.5.21
Configuring dhcp01 dhcpd.conf file:
- Locate the dhpcd.conf - usually found in /etc/dhcp/dhcpd.conf
- Replace it with dhcpd.conf
Configuring dhcp02 dhcpd.conf file:
- Locate the dhpcd.conf - usually found in /etc/dhcp/dhcpd.conf
- Replace it with dhcpd.conf
- Edit the new dhcpd.conf file and replace the first range with 10.0.5.101 and the second with 10.0.5.150.
- Note that all of these ranges are simply for verifying that both dhcp servers are functional. This configuration is not recommended for a practical setup.
Installation of Ansible onto mgmt02:
- sudo apt-add-repository ppa:ansible/ansible
- sudo apt-get update
- sudo apt-get install sshpass ansible -y
- sudo apt-get install python-pip python-setuptools -y
- sudo pip install wheel pywinrm pywinrm[kerberos]
RVTM:
| Requirement/POC | Test | Expected Results | Actual Results | Pass/Fail |
|---|---|---|---|---|
| DHCP1 and DHCP2 should provide DHCP services to your LAN. | To test this, we'll run ipconfig /all which shows the IP configuration, including the DHCP Server providing the IP address to the machine. | On W1, show that its DHCP Server is 10.0.5.15. On W2, show that its DHCP Server is 10.0.5.16 | W1 was using 10.0.5.15, and W2 was using 10.0.5.16. | Pass |
| Should be able to release and renew current IP configuration, and DHCP should be able to assign a new IP to the machine. | For W1, run ipconfig /release and ipconfig /renew, and then do the same for the second workstation machine. | It is expected that DHCP will renew the IP's for these machines. | All IP's were released and renewed as expected. | Pass |
| MGMT02 works as an ansible controller and can perform commands on nodes. | On MGMT02, use ansible to ping DHCP01 via inventory.txt. | The ping sends green text back saying that it worked. | The ping worked and send back the expected results. | Pass |
| UTIL01 is joined to the domain. | On UTIL01, use nmtui to view the IP configuration, which includes the domain. | The domain listed is unlucky.local, and it doesn't have any trouble contacting the rest of the domain. | The domain listed was indeed unlucky.local, and UTIL01 was able to ping other machines connected to the domain. | Pass |