Updating installer with new tools. #1
This commit is contained in:
parent
c910c49efd
commit
97792b4b57
28
.justfile
28
.justfile
@ -3,15 +3,35 @@ set shell := ["bash","-eu","-o","pipefail","-c"]
|
|||||||
|
|
||||||
NOW := `date +%Y%m%d%H%M%S`
|
NOW := `date +%Y%m%d%H%M%S`
|
||||||
|
|
||||||
run: setup
|
gather: build
|
||||||
mkdir -p "runs/{{ NOW }}"
|
mkdir -p "runs/{{ NOW }}"
|
||||||
cd "runs/{{ NOW }}"
|
cd "runs/{{ NOW }}"
|
||||||
|
# sudo dmidecode --string system-uuid
|
||||||
sudo dmidecode > "runs/{{ NOW }}/dmidecode"
|
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"
|
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
|
rye sync
|
||||||
|
|
||||||
clean:
|
clean: killdash
|
||||||
rm -rf runs
|
rm -rf runs
|
||||||
|
|
||||||
|
update:
|
||||||
|
# git reset if local changes?
|
||||||
|
git fetch && git pull
|
||||||
|
./install.sh
|
||||||
|
just setup
|
||||||
|
|||||||
1
.tool-versions
Normal file
1
.tool-versions
Normal file
@ -0,0 +1 @@
|
|||||||
|
python 3.12.9
|
||||||
5
inspector
Normal file → Executable file
5
inspector
Normal file → Executable file
@ -1,3 +1,8 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
"""
|
||||||
|
Inspector provides a processor for the runs data.
|
||||||
|
"""
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
print("CLI call")
|
print("CLI call")
|
||||||
@ -2,8 +2,12 @@
|
|||||||
|
|
||||||
# system dependencies
|
# system dependencies
|
||||||
sudo apt update
|
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
|
# Install rye if not found
|
||||||
if ! command -v rye &> /dev/null
|
if ! command -v rye &> /dev/null
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "inspector"
|
name = "inspector"
|
||||||
version = "0.1.3"
|
version = "0.1.4"
|
||||||
description = "System inspection routine."
|
description = "System inspection routine."
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "Sean Wilbur", email = "sean@abutili.com" }
|
{ name = "Sean Wilbur", email = "sean@abutili.com" }
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user