Icy Walk

Walked late again today, maybe I should be more careful, was pretty darn icy

Got a lot done on the tech side today, made use of the lab to test out building linux servers.

I can rebuild a 3 node lab in under 30 minutes.

I started at 11:30PM lets see if I am done before midnight.

I am back, I was able to get it to a base state before 11:40

Back again, was able to get it down to right before patching. That will take a bit cause it has to go to the Internet, but about 15 to 20 minutes.

Weight: 325.8

Posted in Coding, Technical, Training, Virtualization, Weigh In | Leave a comment

Almost Got All Parts for NAS

I ordered a couple more drives, almost got all the drives I need, not quite, but they are all new.

Got the 2TB NAS fast drive, so almost there. Just need one bulk drive and two more NAS drives, and a spare.

Looking like a February build. May use drives I have that are used or I may get used drives online with the plan to replace them later this year.

Going to begin burn in this weekend.

Weight: 325.0

Posted in New Toys, Technical, Training, Weigh In | Leave a comment

Getting Info From HA to Mysql

There is a variable in my Home Assistant that is considered when turning the lights on or off automatically. I call them light hold values. If say the kitchen hold is on, then the motion sensors will not turn the lights on or off.

There is a button in the kitchen to toggle this value, but most don’t have access to the app. So I created a web page that talks to a mysql database, and also updates it if needed. So they just need a simple browser to look at a simple unauthenticated page, to see if the hold is on.

Another tech thing I did today was install Windows 11 on a cheap HP TC630 thin client. Had to do some hardware tricks but it is running windows 11.

Weight: 327.0

Posted in Coding, New Toys, Technical, Training, Weigh In | Leave a comment

Sleeping In Relaxing Day

Woke up late today, not only that, after I woke I, I did not do much work. Spent most of the day watching youtube videos on the Seahawks.

But I did start reviewing my home assistant and looked to cleaning things up.

Also documenting the different types of zigbee devices and looking to clean up some actions.

It will be a slow process but it is moving.

Weight: 327.8

Posted in Technical, Training, Weigh In | Leave a comment

Journey Home, Seahawks Won

Doing a quick post, watched the Seahawks demolish the 49ers. Was a rare low stress game.

We checked out of the hotel today and it was interesting drive home listening to Bill play Denver and the pregame.

Also won enough money today to pay for the hotel.

Had fun eating and a place that had a new owner.

Good times.

Weight: 327.4

Posted in Training, Weigh In | Leave a comment

Unprepared for this trip

Almost missed posting to this blog, was extremely unprepared for a quick get away.

Overall gone for less tan 48 hours so I didn’t think much of it, but boy did we missed some things.

First off I usually RDP to my primary desktop at home. It as all the tools I need to complete my Friday task. Unfortunately, RDP was turned off on that machine.

Next the mouse I had didnt have the correct mouse usb connector.

Third didn’t bring the air compressor.

Finally, forgot to test my certs, almost was disallowed from posting.

But here we are. Need to update my travel checklist.

Posted in Technical, Training | Leave a comment

Four Day Weekend

Although got another one in less than a month, this is the break we need from the holidays.

Wife and I going on a short getaway, will be back in less than 48 hours for the Seahawks game.

Leaving kids and pets.

I need the break.

Weight: 325.6

Posted in Training, Weigh In | Leave a comment

Lab Back Up

Still need a lab, not just a lab, but VMs with a minimal install.

One skill I have lost was building machines from scratch that don’t have the packages I need.

I am working a bit on a playbook that can change passwords.

---
- name: Securely change root password on multiple machines
hosts: all
become: yes
vars:
local_rpm_path: "python3-passlib-1.7.4-9.el9.noarch.rpm"
package_name: "python3-passlib"

vars_files:
- vault_root_passwords.yml

tasks:
- name: Gather installed package facts
ansible.builtin.package_facts:
manager: auto

- name: Copy RPM to target
ansible.builtin.copy:
src: "{{ local_rpm_path }}"
dest: /tmp/python3-passlib-1.7.4-9.el9.noarch.rpm
mode: '0644'
when: package_name not in ansible_facts.packages

- name: Install package from local RPM file if not installed
ansible.builtin.dnf:
name: /tmp/python3-passlib-1.7.4-9.el9.noarch.rpm
state: present
disable_gpg_check: true
when: package_name not in ansible_facts.packages

- name: Set unique root password per host
ansible.builtin.user:
name: root
password: "{{ root_passwords[inventory_hostname] | password_hash('sha512') }}"
no_log: true

- name: "Support Password"
ansible.builtin.user:
name: support
state: present
password: "{{ support_password[inventory_hostname] | password_hash('sha512') }}"
no_log: true
...

I needed that python3-passlib file what got me on the path of a small minimal install.

Here is a sample of the vault_root_passwords.yml

root_passwords:
lxhost01.retrodvr.com: arajmyisyeeng7
lxhost02.retrodvr.com: giojisthoc9
lxhost03.retrodvr.com: crersyijlirfuv5
support_password:
lxhost01.retrodvr.com: 3onagvakni
lxhost02.retrodvr.com: gejed4shlamegso
lxhost03.retrodvr.com: un5olwugus

I really used those passwords because it is easy to recreate a new one

#!/bin/bash
HOSTNAMELIST=`ansible-vault view inventory | grep -v '^\[' | awk '{print $1}';`
echo "root_passwords:"
for HOSTNAME in $HOSTNAMELIST
do
PASSWORD=`apg -n1 -m10 -x15 -MN`
echo " $HOSTNAME: $PASSWORD"
done

echo "support_password:"
for HOSTNAME in $HOSTNAMELIST
do
PASSWORD=`apg -n1 -m10 -x15 -MN`
echo " $HOSTNAME: $PASSWORD"
done

I do encrypt the vault_root_passwords.yml and sometimes the inventory file

Remove old file
  rm vault_root_passwords.yml

Create emmpty file
  touch vault_root_passwords.yml

Limit perms
  chmod 0600 vault_root_passwords.yml

Create Passwords file
./makepwfile.sh > vault_root_passwords.yml
ansible-vault encrypt vault_root_passwords.yml

Weight: 328.4

Posted in Coding, Technical, Training, Weigh In | Leave a comment

Not Worrying About Money

I hope people reach a point where you are not worried about making more money, I think I reached that point couple years ago.

Couple key points,

  • I made enough money
  • I enjoy my work
  • I am good at what I do

This has been true for a while now, like decades. But in addition

  • I have a decent savings
  • Low enough debt
  • Great credit score
  • Urge to keep up with the “Jones” not there
  • Can deal with multiple emergencies.

And the biggest one, I am ok where I am at financially.

Weight: 327.0

Posted in Training, Weigh In | Leave a comment

Listening To Body

I need to listen to my body more, I ran on the treadmill today, first gym of the year, at a pretty decent pace.

Then I did another mile outside, but it was clear my legs were hurting. I kind of pushed it to the limit, so I am not sure how my legs will feel tomorrow.

I am going to clean up and get an early bed.

Hoping my body can heal when I am asleep.

Weight: 323.8

Posted in Training, Weigh In | Leave a comment