wip
This commit is contained in:
parent
df9d5fb62f
commit
b022eabeb0
6 changed files with 47 additions and 2 deletions
|
@ -64,7 +64,8 @@ for host, sources in hosts.items():
|
||||||
'content': '\n'.join(
|
'content': '\n'.join(
|
||||||
str(source) for source in sorted(sources)
|
str(source) for source in sorted(sources)
|
||||||
).format(
|
).format(
|
||||||
release=node.metadata.get('os_release')
|
release=node.metadata.get('os_release'),
|
||||||
|
version=node.os_version[0], # WIP crystal
|
||||||
),
|
),
|
||||||
'triggers': {
|
'triggers': {
|
||||||
'action:apt_update',
|
'action:apt_update',
|
||||||
|
|
10
bundles/crystal/metadata.py
Normal file
10
bundles/crystal/metadata.py
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
defaults = {
|
||||||
|
'apt': {
|
||||||
|
'packages': {
|
||||||
|
'crystal': {},
|
||||||
|
},
|
||||||
|
'sources': {
|
||||||
|
'deb http://download.opensuse.org/repositories/devel:/languages:/crystal/Debian_{version}/ /',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -2,3 +2,15 @@
|
||||||
setfacl -Rm g:telegraf:rX /var/spool/postfix/
|
setfacl -Rm g:telegraf:rX /var/spool/postfix/
|
||||||
setfacl -dm g:telegraf:rX /var/spool/postfix/
|
setfacl -dm g:telegraf:rX /var/spool/postfix/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
TODO io
|
||||||
|
```bash
|
||||||
|
for pid in $(ls /proc | grep '^[0-9]\+$')
|
||||||
|
do
|
||||||
|
out=$(cat /proc/$pid/io 2> /dev/null) || continue
|
||||||
|
read="$(echo $out | grep '^read_bytes:' | cut -d' ' -f2)"
|
||||||
|
write="$(echo $out | grep '^write_bytes:' | cut -d' ' -f2)"
|
||||||
|
[ $read = 0 ] && [ $write = 0 ] && continue
|
||||||
|
comm=$(cat /proc/$pid/comm); echo "$comm: $read/$write"
|
||||||
|
done
|
||||||
|
```
|
||||||
|
|
21
data/apt/keys/download.opensuse.org.asc
Normal file
21
data/apt/keys/download.opensuse.org.asc
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v2.0.15 (GNU/Linux)
|
||||||
|
|
||||||
|
mQENBGCKr5QBCADXhCz8qeiL+fnILIae3pGcaXAzsFynb9S86pmWHTIwrZIBHA0y
|
||||||
|
6T0d8F7ZX4Y7S+I6Gj+mUBi/9j8geF0SMjmHYss6nS8Txs1Ta2Ain+08MzFMss7d
|
||||||
|
GajwxxqODGoVxUG/4RKLFX1zCnoGmZlVEo9yvBM1eds5xocLyMq5YK9DP/yCVt3m
|
||||||
|
KHyP5XgRU/pIOyOo3g6+qIkhgynHVYIBuPbFQGEbOuUg7noAwTC9B9pYXSRFq9wk
|
||||||
|
T/q8rqOBiyO9SWB9gMiem8HNAzUo5TbVp9xPv2pl3mNXwe5te92pjlWdktOsBZuy
|
||||||
|
TfTgoj3y0HUY48He/z85aJ5j7gX5PU/6arxdABEBAAG0UGRldmVsOmxhbmd1YWdl
|
||||||
|
czpjcnlzdGFsIE9CUyBQcm9qZWN0IDxkZXZlbDpsYW5ndWFnZXM6Y3J5c3RhbEBi
|
||||||
|
dWlsZC5vcGVuc3VzZS5vcmc+iQE+BBMBCAAoBQJgiq+UAhsDBQkEHrAABgsJCAcD
|
||||||
|
AgYVCAIJCgsEFgIDAQIeAQIXgAAKCRDkVq5yhW0UdlBfB/9KrY8UIrQyxk+7Kywa
|
||||||
|
oQKaOMh8tsRF5QW55gPn4ARIwoIPFzjP0v+iDwpxV1EEBveS1LmAjSeXUzZ2zWIn
|
||||||
|
kfeG1u3AUDIlpAe2EAc4RVNOl3KTzn+8hPSpRSleLZluJOeZlbRHZq+ORcXhhj+3
|
||||||
|
xOotPCjxcN/CF3+Q7y/oukf3ZtFUWMSnXrUE8lunhREBQ66lLl6dRCafEq/k1hWp
|
||||||
|
pTe40RjMynZ1cZo5T3zBZwhgj4Ix7GZvkQYCsxenvu1Duf+z6QU5IyTsZ+gjxAKH
|
||||||
|
fYdTYp7IObcywuWT3TLZqj75UdMcE3dwkaK3a56eMc9baPb6ZXb7fKYbfREu/cT6
|
||||||
|
FgTHiEYEExECAAYFAmCKr5QACgkQOzARt2udZSNdFQCgtpRzGoKr9VWnhv+/k4pk
|
||||||
|
Cmp9fycAn0pdJ2xIEsqxOjPBFVDh7Sahecuq
|
||||||
|
=WWMN
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -3,7 +3,7 @@
|
||||||
'groups': [
|
'groups': [
|
||||||
'raspberry-pi',
|
'raspberry-pi',
|
||||||
'debian-11',
|
'debian-11',
|
||||||
# 'monitored',
|
'monitored',
|
||||||
'webserver',
|
'webserver',
|
||||||
],
|
],
|
||||||
'bundles': [
|
'bundles': [
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
'smartctl',
|
'smartctl',
|
||||||
'wireguard',
|
'wireguard',
|
||||||
'zfs',
|
'zfs',
|
||||||
|
'crystal',
|
||||||
],
|
],
|
||||||
'metadata': {
|
'metadata': {
|
||||||
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
'id': 'af96709e-b13f-4965-a588-ef2cd476437a',
|
||||||
|
|
Loading…
Reference in a new issue