generated from edwardtheharris/ansible-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
78 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
#!/bin/bash | ||
|
||
CLICOLOR=1 | ||
INTERFACE=enp0s20f0u4 | ||
KVVERSION=$(curl -sL https://api.github.com/repos/kube-vip/kube-vip/releases | jq -r ".[0].name") | ||
# shellcheck disable=SC2016 | ||
LESS='-R --use-color -Dd+r$Du+b$' | ||
LSCOLORS="Ea" | ||
PS1='[\[\e[38;5;196;1m\]\u\[\e[0m\]@\[\e[38;5;213;1m\]\H\[\e[0m\]:\w]{$?}\$ ' | ||
PATH="$PATH:/root/.local/bin" | ||
VIP=192.168.5.30 | ||
|
||
# shellcheck disable=SC1091 | ||
if [ -f /usr/share/bash-completion/bash_completion ]; then | ||
source /usr/share/bash-completion/bash_completion | ||
fi | ||
|
||
export CLICOLOR | ||
export INTERFACE | ||
export KVVERSION | ||
export LESS | ||
export LSCOLORS | ||
export PATH | ||
export PS1 | ||
export VIP | ||
|
||
|
||
if [ ! -f "$HOME/.vim/autoload/plug.vim" ]; then | ||
if [ -f /usr/bin/pacman ]; then | ||
if [ ! -f /usr/bin/node ]; then | ||
pacman -S npm | ||
fi | ||
if [ ! -f /usr/bin/xsel ]; then | ||
pacman -Sy --noconfirm xsel | ||
fi | ||
|
||
if [ -f /usr/bin/xsel ]; then | ||
alias pbcopy='xsel --clipboard --input' | ||
alias pbpaste='xsel --clipboard --output' | ||
fi | ||
fi | ||
if [ -f /usr/bin/apt-get ]; then | ||
sudo apt-get -y update | ||
sudo apt-get -y install curl git npm | ||
fi | ||
git clone [email protected]:bryant/neovim.git "$HOME/Documents/src/github.com/bryant/neovim" | ||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ | ||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ||
vim +PlugInstall +qall | ||
fi | ||
|
||
eval "$(direnv hook bash)" | ||
|
||
alias diff='diff --color=auto' | ||
alias grep='grep --color=auto' | ||
alias h='helm' | ||
alias ip='ip -color=auto' | ||
alias k='kubectl' | ||
# shellcheck disable=SC2139 | ||
alias kube-vip="ctr image pull ghcr.io/kube-vip/kube-vip:${KVVERSION}; ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:${KVVERSION} vip /kube-vip" | ||
alias ls='ls --color' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,7 +30,7 @@ | |
tags: | ||
- join | ||
- name: Kube VIP | ||
hosts: kcp | ||
hosts: kcp01_init | ||
become: true | ||
roles: | ||
- role: kv | ||
|