chore: add current provisioning state before migration
This commit is contained in:
parent
a9703b4748
commit
50745b0f22
660 changed files with 88126 additions and 0 deletions
2
o-klab/sgoyol/bin/aws_alias.sh
Normal file
2
o-klab/sgoyol/bin/aws_alias.sh
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
alias ec2_ins="aws ec2 describe-instances --out json --query \"Reservations[*].Instances[?State.Name!='terminated']\""
|
||||
alias ec2_vols="aws ec2 describe-volumes --out json"
|
||||
3
o-klab/sgoyol/bin/cert-show.sh
Executable file
3
o-klab/sgoyol/bin/cert-show.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
[ -z "$1" ] || [ ! -r "$1" ] && echo "Cert file $1 not found" && exit 1
|
||||
openssl x509 -in "$1" -text -noout
|
||||
7
o-klab/sgoyol/bin/on_deploy_remove
Executable file
7
o-klab/sgoyol/bin/on_deploy_remove
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
RUN_PATH=$(dirname "$(dirname "$0")")
|
||||
if [ -d "$RUN_PATH/resources/etcdcerts" ] && [ ! -r "$RUN_PATH/resources/etcdcerts/lockfile" ] ; then
|
||||
if rm -rf "$RUN_PATH/resources/etcdcerts" ; then
|
||||
echo "$RUN_PATH/resources/etcdcerts removed"
|
||||
fi
|
||||
fi
|
||||
8
o-klab/sgoyol/bin/sync_resources
Executable file
8
o-klab/sgoyol/bin/sync_resources
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
RUN_PATH=$(dirname "$(dirname "$0")")
|
||||
if [ -d "$RUN_PATH/resources/etcdcerts" ] ; then
|
||||
rm -rf "$RUN_PATH/../wuji/resources/etcdcerts"
|
||||
if cp -pr "$RUN_PATH/resources/etcdcerts" "$RUN_PATH/../wuji/resources/etcdcerts" ; then
|
||||
echo "$RUN_PATH/resources/etcdcerts copied in $RUN_PATH/../wuji/resources/etcdcerts"
|
||||
fi
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue