Last active
March 27, 2025 11:44
-
-
Save Schm1tz1/7a4e6b99de961daecd5049e4a32a87b2 to your computer and use it in GitHub Desktop.
Package setup script for a debian-based cluster jumphost
This file contains hidden or 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
#!/usr/bin/env bash | |
mkdir ~/bin | |
curl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -o ~/bin/kubectl | |
chmod +x ~/bin/kubectl |
This file contains hidden or 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
#!/usr/bin/env bash | |
# packages build and ansible tools | |
sudo apt update && sudo apt dist-upgrade -y | |
sudo apt install -y htop tmux openssl \ | |
build-essential procps curl file git \ | |
openjdk-11-jre-headless openjdk-11-jdk \ | |
python3-pip kcat haproxy maven jq \ | |
silversearcher-ag tree vim | |
#sudo pip3 install ansible | |
#pip3 install jinja2 | |
#sudo hostnamectl set-hostname jumphost | |
# workdir and ansible config | |
mkdir ~/workspace | |
# pull CP from galaxy | |
# ansible-galaxy collection install git+https://github.com/confluentinc/cp-ansible.git | |
# install oh my bash | |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)" | |
# awesome vim config | |
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime | |
sh ~/.vim_runtime/install_awesome_vimrc.sh | |
# get jmxterm | |
# wget https://github.com/jiaqi/jmxterm/releases/download/v1.0.2/jmxterm-1.0.2-uber.jar | |
# install Confluent CLI | |
# curl -sL --http1.1 https://cnfl.io/cli | sh -s -- latest | |
sudo apt install curl gnupg | |
sudo mkdir -p /etc/apt/keyrings | |
curl https://packages.confluent.io/confluent-cli/deb/archive.key | sudo gpg --dearmor -o /etc/apt/keyrings/confluent-cli.gpg | |
sudo chmod go+r /etc/apt/keyrings/confluent-cli.gpg | |
echo "deb [signed-by=/etc/apt/keyrings/confluent-cli.gpg] https://packages.confluent.io/confluent-cli/deb stable main" | sudo tee /etc/apt/sources.list.d/confluent-cli.list >/dev/null | |
sudo apt update | |
sudo apt install confluent-cli -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Installation e.g. via
curl -sL https://gist.githubusercontent.com/Schm1tz1/7a4e6b99de961daecd5049e4a32a87b2/raw/0daef6c5d79eab5681d8b233311127f4c5889d94/setup_jumphost.sh | bash