Overview
This is the fourth post on restoring my VMware to Proxmox environment.
Inventory
My main goal is to get the inventory system up and processing. This includes getting nightly scripts that the service account runs plus the additional scripts that root runs.
The Inventory generates the hosts file used by Ansible to run playbooks. While I have a hosts file of course, it’s a step forward to get this working.
The Inventory itself has had several updates which are in git but haven’t been updated to the central Inventory server. As such I’ll need to git pull the updated files into a different directory and then do a comparison with the existing one.
The updates were pretty easy. First script was a compare of missing scripts. Those were identified and copied into the appropriate directories. Then a comparison between existing scripts. Those were mostly where I was extracting the dialog boxes out (same twice) into a single file that was included twice. Third were the database updates. New tables and adding a few columns to existing tables.
Once done, the new inventory was up and running without issues.
Regular Scripts
Once the Inventory is up, I can then install the script library across all systems. This does a lot of setup for various tasks and basically ensures all are running as expected.
Scripts are installed via Ansible. With the restored directory, I have the existing playbooks. I had to make a couple of updates and add a few playbooks. I expect I’ll be adding more as I move on.
Config 2 HTML
This is a program that was created years ago which essentially captures a system configuration backup which is then retrieved and places on the web server where it can be viewed.
Cfg2HTML is installed via Ansible. This includes the cron job which generates the data files.
DNS
As I worked forward, I found DNS wasn’t working. Forwarding specifically. It’s working with each environment but no forwarding. I’ve done a lot of research to determine the problem but have run into a wall. I have some deep diving to attempt but in the mean time, with Ansible I can install a common hosts file across all machines.
I did make a change where the old production environment was prod.internal.pri and I removed the prod from the configuration and all the servers.
So this is a TODO task!
At this point, we can move into the next post!