Lab05 CentOS8 - jwells24/Tech-Journal GitHub Wiki

Terms

  • Cockpit: Cockpit is a package for CentOS and other linux dystros that allows you to access and manage hosts from a web client. You can also join domains, access the command line, and manage users for managed hosts in cockpit.

  • NMcli: Nmcli is a centOS8 tool that can be used as opposed to NMtui. NMCli is used to configure the network settings of the clients. You can configure the ip of a computer with the command: nmcli con mod ens192 10.10.10.10/24, and confirm the connection with nmcli con up ens192. It can also be used to configure preffered DNS server, DHCP server, and gateway.

Overview

  • At the start of the lab, we configured ansible2-jack using nmcli. Some documentation for using nmcli can be found above in the terms section. Next, we installed cockpit by installing the cockpit package with dnf. Once installed, we enable and start cockpit.socket using systemctl. Then, we add the cockpit service to the firewall permanently and restart it. Now, we can view the status of the cockpit service and make sure it is running correctly. To access the cockpit service from a web client, you navigate to the hostname/IP address using the port 9090. Log in using a local account and now you have access to your computer/server. You can also join a domain in the cockpit, by navigating to the overview tab and configuring the join domain section. This is much easier than using the command line with realmd. Lastly, we also added our domain administrator to ansible2 and added ansible1 to cockpit.