Source Update

This commit is contained in:
Christer Warén
2024-05-01 02:52:21 +03:00
parent cb76cbd190
commit 7765af850a
10 changed files with 37 additions and 206 deletions

View File

@ -1,8 +1,8 @@
wx-help(){
echo -n "$wxItalic"
echo " >> Help << "
echo -n "$wxNormal";
echo "------------------------------"
echo -n "
Usage: $0 COMMAND [OPTIONS]
@ -15,4 +15,5 @@ Common Commands:
Management Commands:
settings Settings
";
}

View File

@ -1,17 +0,0 @@
wx-init(){
wx-login
echo -n "$wxItalic"
echo " >> Init << "
echo -n "$wxNormal";
echo "------------------------------"
mkdir -p ~/.ssh &> /dev/null
apt-get install -y python3-pip python3-venv jq git curl &> /dev/null
python3 -m venv /opt/ansible &> /dev/null
/opt/ansible/bin/pip3 install ansible hvac netaddr jmespath pexpect &> /dev/null
/opt/ansible/bin/ansible-pull -U ssh://git@$GIT_DOMAIN:$GIT_PORT/$GIT_REPOSITORY --vault-password-file ~/.ansible/vault.yml --private-key ~/.ssh/init playbooks/init.yml -t init
}

View File

@ -1,8 +1,6 @@
wx-settings(){
wx-login
echo -n "$wxItalic"
echo " >> Settings << "
echo -n "$wxNormal";
echo "------------------------------"
}

View File

@ -9,9 +9,7 @@ wx-ssh(){
wx-ssh-config
;;
*)
echo -n "$wxItalic"
echo " >> SSH << "
echo -n "$wxNormal";
echo "------------------------------"
wx-stop

View File

@ -1,7 +1,5 @@
wx-ssh-config(){
echo -n "$wxItalic"
echo " >> SSH << "
echo " Config "
echo -n "$wxNormal";
echo "------------------------------"
}

View File

@ -1,8 +1,6 @@
wx-ssh-sign(){
echo -n "$wxItalic"
echo " >> SSH << "
echo " Sign "
echo -n "$wxNormal"
echo "------------------------------"
if [[ $ORG == "warengroup" ]]

View File

@ -1,6 +1,4 @@
wx-welcome(){
echo -n "$wxItalic"
echo " >> Welcome << "
echo -n "$wxNormal"
echo "------------------------------"
}