Setting Up the Foreman and Katello Development Environment: A Step-by-Step Guide
Chapters
0:00 - Intro
0:59 - Knowing the Forklift project
3:30 - Brand New CentOS Stream 9
4:04 - The scenarios that we can think of for this implementation
6:04 - Commands to implement the environment
14:24 - Installing some vagrant plugins
17:42 - Firewalld
18:55 - Cloning the forklift
19:33 - Installing the ansible requirements via ansible-galaxy
20:40 - Some custom conf that will help you during this journey
23:24 - Checking some templates available that you can call
25:05 - User as member of libvirt group
27:23 - Deploying the new development server
34:12 - Accessing the machine via "vagrant ssh" command
35:07 - SSH Tunnel (recommended if your devbox server is different of your local desktop)
42:58 - Updating the vagrant password
43:41 - Accessing via network via ssh, using the vagrant account
45:15 - How to start the foreman app and access it via webUI, via network
48:45 - More info about the SSH Tunnel
54:08 - Initial git configuration
1:01:38 - Bonus!!! Quick code change live!
1:02:47 - Bonus!!! How to access foreman via webUI by using the FQDN?
1:05:49 - Closing
The commands used in this video
---
sudo dnf -y install ansible-core
sudo dnf -y install rsync
sudo dnf -y install yum-utils
sudo dnf config-manager --add-repo https://rpm.releases.hashicorp.com/RH...
sudo dnf -y install vagrant
sudo dnf config-manager --set-enabled crb
sudo dnf -y install '@Virtualization Hypervisor' '@Virtualization Tools' '@Development Tools' 'libvirt-devel'
sudo systemctl enable --now libvirtd
sudo systemctl status libvirtd
vagrant plugin install vagrant-libvirt
vagrant plugin install vagrant-hostmanager
sudo systemctl disable --now firewalld
git clone https://github.com/theforeman/forklif...
cd forklift
ansible-galaxy collection install -r requirements.yml
cp vagrant/boxes.d/99-local.yaml{.example,}
sed -i "s/REPLACE ME/GITHUB_NICK/g" vagrant/boxes.d/99-local.yaml
NOTE: YouTube doesn't allow me to add the "angle brackets" before and after "REPLACE ME". Please, feel free to check in the video the correct command.
grep -v "^ " vagrant/boxes.d/99-local.yaml | grep ":$" | sort
In the case of a regular user, you need to add the user to the libvirt group
sudo usermod -a -G libvirt YOUR_LOCAL_USER_HERE
id YOUR_LOCAL_USER_HERE
vagrant up centos9-katello-devel-stable
ssh -L *:22000:centos9-katello-devel-stable.example.com:22 -L *:8080:centos9-katello-devel-stable.example.com:80 -L *:3808:centos9-katello-devel-stable.example.com:3808 -L *:3000:centos9-katello-devel-stable.example.com:3000 -L *:4433:centos9-katello-devel-stable.example.com:443 -o IdentityFile=/home/admin/forklift/.vagrant/machines/centos9-katello-devel-stable/libvirt/private_key [email protected] -N -v
ssh [email protected] -p 22000
git config --global --list --show-origin
git config --global user.name "Waldirio M Pinheiro"
git config --global user.email [email protected]
git config --global --list --show-origin
git remote add origin [email protected]:waldirio/foreman.git
git remote add origin [email protected]:waldirio/katello.git
git remote -v
---
Contact
LinkedIn - / waldirio
Instagram - / waldirio
Would you like to discuss this subject and much more? join the discord channel - / discord
Gostaria de falar sobre esse topico, e muito mais? Entre no canal do discord - / discord
Editor
LinkedIn - / narutocanada