From 97792b4b57487764f8501a1c8ff6054ab0fe1254 Mon Sep 17 00:00:00 2001 From: Sean Wilbur Date: Fri, 12 Sep 2025 09:16:52 -0500 Subject: [PATCH] Updating installer with new tools. #1 --- .justfile | 30 +++++++++++++++++++++++++----- .tool-versions | 1 + inspector | 7 ++++++- install.sh | 6 +++++- pyproject.toml | 2 +- 5 files changed, 38 insertions(+), 8 deletions(-) create mode 100644 .tool-versions mode change 100644 => 100755 inspector diff --git a/.justfile b/.justfile index 5e06f92..aa9fb9d 100644 --- a/.justfile +++ b/.justfile @@ -3,15 +3,35 @@ set shell := ["bash","-eu","-o","pipefail","-c"] NOW := `date +%Y%m%d%H%M%S` -run: setup +gather: build mkdir -p "runs/{{ NOW }}" cd "runs/{{ NOW }}" + # sudo dmidecode --string system-uuid sudo dmidecode > "runs/{{ NOW }}/dmidecode" - rye run ansible localhost -m ansible.builtin.setup > "runs/{{ NOW }}/ansible.builtin.setup.json" inxi --full > "runs/{{ NOW }}/inxi.expanded" + sudo dmesg > "runs/{{NOW}}/dmesg" + sudo lshw > "runs/{{NOW}}/lshw" + rye run ansible localhost -m ansible.builtin.setup > "runs/{{ NOW }}/ansible.builtin.setup.json" -setup: +dash: + # open screen session with multiple commands + screen -S mysession -d -m + screen -S mysession -X screen -t "top" top + screen -S mysession -X screen -t "htop" htop + screen -S mysession -X screen -t "iostat" iostat + screen -S mysession -X screen -t "sysstat" sysstat + +killdash: + screen -S mysession -X quit + +build: rye sync -clean: - rm -rf runs \ No newline at end of file +clean: killdash + rm -rf runs + +update: + # git reset if local changes? + git fetch && git pull + ./install.sh + just setup diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..9c901a5 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +python 3.12.9 diff --git a/inspector b/inspector old mode 100644 new mode 100755 index cd856df..63b2cc4 --- a/inspector +++ b/inspector @@ -1,3 +1,8 @@ +#!/usr/bin/env python +""" +Inspector provides a processor for the runs data. +""" + if __name__ == "__main__": - print("CLI call") \ No newline at end of file + print("CLI call") diff --git a/install.sh b/install.sh index 8c27ea9..24e1360 100755 --- a/install.sh +++ b/install.sh @@ -2,8 +2,12 @@ # system dependencies sudo apt update -sudo apt install -y git inxi just dmidecode +# workflow - just git +# hardware/bios - inxi dmidecode +# cli performance tools - htop speedometer iostat sysstat +# +sudo apt install -y just git htop speedometer iostat sysstat # Install rye if not found if ! command -v rye &> /dev/null diff --git a/pyproject.toml b/pyproject.toml index 6b5da65..48291cb 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "inspector" -version = "0.1.3" +version = "0.1.4" description = "System inspection routine." authors = [ { name = "Sean Wilbur", email = "sean@abutili.com" }