mirror of
https://github.com/kemko/slurm.git
synced 2026-01-01 15:55:48 +03:00
kubspray deploy script
This commit is contained in:
14
scripts/_deploy_cluster.sh
Normal file
14
scripts/_deploy_cluster.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
###ssh-agent bash
|
||||
#ssh-add ~/.ssh/id_rsa
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 adminname"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
d=$(date '+%Y.%m.%d_%H:%M')
|
||||
ANSIBLE_FORCE_COLOR=true ansible-playbook -u $1 -k -i inventory/southbridge/hosts.ini cluster.yml -b --diff 2>&1 | tee "./deploy-$d.log"
|
||||
|
||||
sed -i -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g" "./deploy-$d.log"
|
||||
Reference in New Issue
Block a user