Scripte + RegEx (#38)

* Inventar K8s + Hosts hinzugefügt

* wip

* zfs-free - Spalten ausgeblendet

* systemtemps Spalten + Design angepasst

* watch entfernt aus systemtempsm quoting funktioniert nicht
This commit is contained in:
Quotengrote 2020-10-09 20:11:34 +02:00 committed by GitHub
parent c2bc13e37b
commit 1cbdcbd0d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 3 deletions

View file

@ -0,0 +1,6 @@
---
### oefenweb.ufw
ufw_rules:
- rule: allow
to_port: ''
comment: 'allow all traffic'

View file

@ -1,5 +1,27 @@
--- ---
### mgrote.install_packages
programs_common:
- locales
- build-essential
- ntp
- htop
- git
- dnsutils
- nano
- mc
- cifs-utils
- netdiscover
- tree
- curl
- logrotate
- ncdu
- net-tools
- sysstat
- apt-transport-https
- neofetch
- ntpdate
- acl
- ifupdown2
### mgrote.dotfiles ### mgrote.dotfiles
dotfiles_local_repo_directory: "/root/dotfiles-repo" dotfiles_local_repo_directory: "/root/dotfiles-repo"
dotfiles_user: "root" dotfiles_user: "root"

7
inventories/k8s Normal file
View file

@ -0,0 +1,7 @@
all:
children:
k8s:
hosts:
k8s-1.grote.lan:
k8s-2.grote.lan:
k8s-3.grote.lan:

View file

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
watch --interval 10 --differences --color --no-title "ipmitool sensor | cut -d '|' -f 1-3 | grep -i "degrees" | sort -k2 -r | sed -r 's/degrees C/°C/'" sudo ipmitool sensor | cut --delimiter '|' -f 1-3 | grep -i "degrees" | sort -k2 -r | tr --delete "|" | tr --squeeze-repeats " " | sed -r 's/(degrees C)/°C/g;s/([[:alnum:]]+[[:space:]][[:alpha:]]+ )([[:digit:]]+\.[[:digit:]]+ )(°C)/\2\t\3\t\1/g'

View file

@ -1,2 +1,2 @@
#! /bin/bash #! /bin/bash
watch --interval 60 --differences --color --no-title "zfs list -o space | grep -v /" watch --interval 60 --differences --color --no-title "sudo zfs list -o space | grep -v / | tr -s ' ' | cut --delimiter=' ' --fields=1-3 | sed -r 's/\s/\t\t/g;s/NAME/NAME\t/g'"