Skip to content
warhansen edited this page Sep 27, 2018 · 25 revisions

An introduction to what the scripts do and any notes I have about them

Kubernetes

This installs a kubernetes single master cluster on Centos. It installs the latest version and dependencies. The only thing you need to still do after these scripts are run is the "add node" kubernetes command.

LVM_setup.sh

This partitions a drive or part thereof and creates or adds to and existing LVM. The script assumes any unused space on a drive so if you want to only use a specific part partition the drive first, then run the script. This script uses dialog go or plain text depending on whether the server has internet, and whether the package is already installed. No more need to run all the lvdisplay or vgdisplay views to get details before adding to/creating a LVM.

change_centos_to_eth0

So I got tired of Centos' new ipsl blah blah naming of interfaces. It broke most of my scripts that get things installed, so now I have a script to rename the interface to eth0!

git_change_push/pull

A little script that checks if there were any git changes before running a push (or a pull). These are mainly for one-way traffic, so if your server always pulls then use the push, and if it always pulls, use the pull.

iptables_cloudflare_ips_update

A little script that adds the latests IP's used by cloudflare in case you only want to allow access to your server from Cloudlfare

openvpn-install

I got this script from someone else. (https://github.com/Nyr/openvpn-install). Works beautifully. Sets up a openvpn server in minutes.

#Python -> wsadmin I have recently got started on Websphere WAS. Being in a DevOps role naturally I am using the API, ie, wsadmin. For this reason I have started adding scripts I write do some tasks that need to get done regularly. And of course I think the IBM official website is close to useless except as reference!

Clone this wiki locally