iankelling.org
/
git
/
distro-setup
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
general fixes
[distro-setup]
/
brc2
diff --git
a/brc2
b/brc2
index 5fde3685ef65a65997aa6542cce52a87ae69f3cb..6ac51839640d6b111de332c2196a89468ff154f4 100644
(file)
--- a/
brc2
+++ b/
brc2
@@
-441,7
+441,7
@@
ralerts() { # remote alerts
ap() {
# pushd in case current directory has an ansible.cfg file
pushd /a/xans >/dev/null
ap() {
# pushd in case current directory has an ansible.cfg file
pushd /a/xans >/dev/null
- ansible-playbook -v -
l ${1:- $(hostname -f)}
site.yml
+ ansible-playbook -v -
i ${1:- $(hostname -f)},
site.yml
popd >/dev/null
}
aw() {
popd >/dev/null
}
aw() {
@@
-2963,7
+2963,7
@@
EOF
done | s cedit -e hosts-file-up /etc/hosts
for host in ${hosts[@]}; do
echo $host
done | s cedit -e hosts-file-up /etc/hosts
for host in ${hosts[@]}; do
echo $host
- done
| cedit -e /a/bin/ds
/subdir_files/.dsh/group/btrbk
+ done
>/p/c
/subdir_files/.dsh/group/btrbk
### end focus on hosts file update ###
### end focus on hosts file update ###
@@
-3384,8
+3384,8
@@
myprof() {
pushd /home/iank/.local/share/profanity/chatlogs/iank_at_fsf.org/rooms/office_at_conference.fsf.org
logs=(*)
logcount=${#logs[@]}
pushd /home/iank/.local/share/profanity/chatlogs/iank_at_fsf.org/rooms/office_at_conference.fsf.org
logs=(*)
logcount=${#logs[@]}
- if (( logcount > 1
5
)); then
- i=$(( logcount - 1
5
))
+ if (( logcount > 1
6
)); then
+ i=$(( logcount - 1
6
))
else
i=0
fi
else
i=0
fi
@@
-4776,6
+4776,20
@@
opensslcertinfo() {
openssl x509 -txt -in "$@"
}
openssl x509 -txt -in "$@"
}
+# dsh on btrbk hosts
+dsb() {
+:
+ }
+
+# dsh a file and run it
+dsa() {
+ local ret file
+ if ! parallel -j 10 scp x {}:/tmp <~/.dsh/group/btrbk; then
+ echo parallel scp failed. dsa returning $ret
+ fi
+ dsh -g btrbk
+ }
+
export BASEFILE_DIR=/a/bin/fai-basefiles
#export ANDROID_HOME=/a/opt/android-home
export BASEFILE_DIR=/a/bin/fai-basefiles
#export ANDROID_HOME=/a/opt/android-home