Util Configuration - SomethingGeneric/sparkle.local GitHub Wiki
util-sparkle
Rename PC to - Log into system
- Run the
nmtui
command - Select
change hostname
- Input new hostname and exit
nmtui
menuNote: System hostname will be changed after a sign-out/login
^^ Screenshot of the
nmtui
command being used to change the system hostname.
^^ Screenshot of the system hostname successfully changed to
util-sparkle
.
Configure Static IP Address
- Connect Util's ethernet adapter to the sparkle.local LAN (vSphere)
- On Util, Run the
nmtui
command - "Edit a connection"
- Edit the available "ens192" network adapter
- Configure necessary IP information
- Save/Exit the
nmtui
program
Additional Troubleshooting: Run
systemctl restart network
to restart the system's network service if necessary
^^ Screenshot of the
nmtui
command being used to change the system IP configuration.
Test/Verify Network Connectivity
To test the network connectivity of the util-sparkle
system, I ran a ping to Fw01-sparkle, google.com, and google DNS (8.8.8.8) to verify that DNS was working as well as working connectivity to the internet. (**Note, I also added a new DNS A and PTR record for Util-sparkle on DC01 to ensure that the system's name could be resolved by other system within the domain)
Successful pings from Util-sparkle to Fw01-sparkle, google.com, and google DNS (8.8.8.8).
Creating a Priv Local Admin
Using a privileged sudo/wheel
user (i.e "root") I used the following commands to create a new sparkle-loc
Priv User on util
, change their password, and add them to the wheel
group.
sudo useradd <new_username_here>
passwd <new_username_here>
usermod -aG wheel <new_username_here>
Screenshot of the new
sparkle-loc
user as well as the user successfully elevating to root.
sparkle.local
domain
Joining the For this task, I installed and used the realmd
command to join util-sparkle
to the sparkle.local
domain. The following commands were used to complete this:
sudo yum update
(updates the system's software packages)sudo yum install -y realmd samba samba-common oddjob oddjob-mkhomedir sssd
(installs realmd)realm join [email protected] yourdomain.local
(uses realmd to join the system to the domain)
Screenshot of a successful login to the
sparkle.local
domain onutil-sparkle
using themike-adm
domain user account.
Deploying Forgejo via Ansible
The util-sparkle
machine already had the sparkle-deployer
account added, with SSH key, so Ansible playbooks run on the machine.
The playbook we've written for Forgejo which you can find here took an awful lot of debugging, but it should:tm: now work flawlessly on any CentOS machine. (Maybe other EL* but we can't promise that.)
Forgejo web UI on port 3000: