Skip to content

Instantly share code, notes, and snippets.

View martezr's full-sized avatar

Martez Reed martezr

View GitHub Profile
@martezr
martezr / Guacamole_Installer
Last active March 23, 2017 03:30
Guacamole HTML5 Gateway Installation Script
#!/bin/bash
#Guacamole 0.9.0 Installation Script
#Versioning Variables
guacamoleclientdownload = "http://sourceforge.net/projects/guacamole/files/current/binary/guacamole-0.9.0.war"
guacamoleserverdownload = "http://sourceforge.net/projects/guacamole/files/current/source/guacamole-server-0.9.0.tar.gz"
guacamoleservertar = "guacamole-server-0.9.0.tar.gz"
guacamoleserversource = "guacamole-server-0.9.0"
guacamoleclientwar = "guacamole-0.9.0.war"
@martezr
martezr / Guacamole_095_Ubuntu_Installer
Last active February 26, 2016 16:38
Guacamole 0.9.5 Ubuntu Installer
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
######## Martez Reed ###########
################################
## Define variables
@martezr
martezr / Guacamole_096_Ubuntu_Installer
Last active October 21, 2015 01:29
Guacamole 0.9.6 Ubuntu Installer
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
######## Martez Reed ###########
################################
## Define variables
#!/bin/bash
################################
## Guacamole Installer Script ##
## Green Reed Technology 2015 ##
## Martez Reed ##
################################
## Define variables
@martezr
martezr / centos7ks.cfg
Last active October 11, 2019 23:10
CentOS 7 Kickstart File
#version=RHEL7
# Action
install
cdrom
lang en_US.UTF-8
keyboard us
text
firewall --service=ssh
@martezr
martezr / vault.service
Created July 19, 2018 18:06
HashiCorp Vault SystemD
[Unit]
Description=secrets management server
Documentation=https://vaultproject.io/docs/
After=network.target
ConditionFileNotEmpty=/opt/vault/config/vault-config.hcl
[Service]
User=vault
Group=vault
ExecStart=/usr/local/bin/vault server -config=/opt/vault/config/vault-config.hcl
@martezr
martezr / centos7golanginstaller.sh
Last active October 23, 2019 00:11
centos7golanginstaller.sh
#!/bin/bash
wget https://dl.google.com/go/go1.13.3.linux-amd64.tar.gz
sudo tar -C /usr/local -xvzf go1.13.3.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' > /etc/profile.d/gopath.sh
cat << EOF >> ~/.bash_profile
export GOBIN="$HOME/projects/bin"
export GOPATH="$HOME/projects/src"
EOF
mkdir -p ~/projects/{bin,pkg,src}
source /etc/profile && source ~/.bash_profile
@martezr
martezr / rhel8ks.cfg
Created June 13, 2019 01:44
RHEL 8 Kickstart
#version=RHEL8
ignoredisk --only-use=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
# Use text install
text
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
# Use CDROM installation media
cdrom
@martezr
martezr / helm-install.sh
Last active October 18, 2019 21:25
Kubernetes Bootstrap
#!/bin/bash
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
wget https://get.helm.sh/helm-v2.15.0-linux-amd64.tar.gz
tar -xzf helm-v2.15.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm
helm init --service-account=tiller
@martezr
martezr / bolt_plan.sh
Last active September 13, 2020 19:37
Puppet Bolt Terraform Inventory Advanced Blog Post
bolt plan run todoapp::todoapp -m /Users/martez.reed/.puppetlabs/bolt-code/modules:bolt/site-modules -i bolt/inventory
.yaml web=web database=database