.
This commit is contained in:
@ -5,43 +5,44 @@ set -e
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
check_keystore () {
|
check_keystore () {
|
||||||
if [ ! -d ${KEYSTORE} ]
|
if [ ! -d ${KEYSTORE} ]
|
||||||
then
|
then
|
||||||
mkdir -p ${KEYSTORE}
|
mkdir -p ${KEYSTORE}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_bastionkey () {
|
check_bastionkey () {
|
||||||
if [ ! -f ${BASTIONKEY} ]
|
if [ ! -f ${BASTIONKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${BASTIONKEY} -N "" -C bastion@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${BASTIONKEY} -N "" -C bastion@${NAME}
|
||||||
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_b${NAME}.pub
|
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_b${NAME}.pub
|
||||||
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_d${NAME}.pub
|
cp -p ${BASTIONKEY}.pub ${KEYSTORE}/_d${NAME}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_gitkey () {
|
check_gitkey () {
|
||||||
if [ ! -f ${GITKEY} ]
|
if [ ! -f ${GITKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${GITKEY} -N "" -C git@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${GITKEY} -N "" -C git@${NAME}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_rsynckey () {
|
check_rsynckey () {
|
||||||
if [ ! -f ${RSYNCKEY} ]
|
if [ ! -f ${RSYNCKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${RSYNCKEY} -N "" -C rsync@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${RSYNCKEY} -N "" -C rsync@${NAME}
|
||||||
cp -p ${RSYNCKEY}.pub ${KEYSTORE}/_r${NAME}.pub
|
cp -p ${RSYNCKEY}.pub ${KEYSTORE}/_r${NAME}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_vibblerkey () {
|
check_vibblerkey () {
|
||||||
if [ ! -f ${VIBBLERKEY} ]
|
if [ ! -f ${VIBBLERKEY} ]
|
||||||
then
|
then
|
||||||
ssh-keygen -o -a 100 -t ed25519 -f ${VIBBLERKEY} -N "" -C vibbler@${NAME}
|
ssh-keygen -o -a 100 -t ed25519 -f ${VIBBLERKEY} -N "" -C vibbler@${NAME}
|
||||||
cp -p ${VIBBLERKEY}.pub ${KEYSTORE}/_v${NAME}.pub
|
cp -p ${VIBBLERKEY}.pub ${KEYSTORE}/_v${NAME}.pub
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
check_key () {
|
check_key () {
|
||||||
|
|||||||
Reference in New Issue
Block a user