Skip to content

Instantly share code, notes, and snippets.

View geekbass's full-sized avatar

Weston Bassler geekbass

  • Emburse
  • Columbus, Ohio
View GitHub Profile
@geekbass
geekbass / ansible provisioner
Created May 19, 2018 23:30
Ansible Provisioner
{
"type": "ansible-local",
"playbook_file": "ansible/aws-packer.yml",
"playbook_dir": "ansible",
"staging_directory": "/home/centos/ansible",
"inventory_file": "ansible/inventory/aws/hosts"
},
@geekbass
geekbass / packer-jenkinsfile
Created May 20, 2018 01:16
packer jenkinsfile
#!groovy
node {
def err = null
def environment = "Development"
currentBuild.result = "SUCCESS"
try {
stage ('Checkout') {
@geekbass
geekbass / default.conf
Last active June 8, 2018 21:00
Spark on DC/OS UI Proxy
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://driverforss-rva-processing.spark-2.2.mesos:4040/jobs/;
sub_filter_types text/html;
sub_filter_once off;
sub_filter '="/' '="/service/spark-jobs/';
@geekbass
geekbass / repo-reset.md
Created June 27, 2018 18:37 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A
@geekbass
geekbass / default.conf
Last active July 9, 2018 18:18
Kubernetes on DC/OS Dashboard Proxy
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://apiserver-insecure.kubernetes.l4lb.thisdcos.directory:9000/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/;
sub_filter_types text/html;
sub_filter_once off;
sub_filter '="/' '="/service/kubernetes-dash/';
@geekbass
geekbass / playbook.yaml
Created July 31, 2018 14:08
Ansible 'when' example for playbook
---
- hosts: hosts
vars:
tasks:
- name: add filebeat yaml config for Non Agents ONLY
copy: src=filebeat.yml dest=/etc/filebeat/filebeat.yml owner=root group=root
when: "'non-agents' in group_names"
- name: add filebeat yaml config for Agents ONLY
@geekbass
geekbass / forked.md
Created August 22, 2018 14:59
Sync forked Repo

1. Clone your fork:

git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
@geekbass
geekbass / default.conf
Last active September 5, 2018 19:57
kubenode-blue
server {
listen 80;
server_name localhost;
location / {
proxy_pass http://kube-node-0-kubelet.kubernetes-blue.mesos:30001;
sub_filter_types text/html;
sub_filter_once off;
}
@geekbass
geekbass / tagged.md
Created September 11, 2018 13:52
Tagging commits/branches

1. Inside your branch, add the tag:

git tag 0.0.6

2. You can push the tag as an update to the branch:

git push origin 0.0.6 --tags
@geekbass
geekbass / main.tf
Created September 21, 2018 13:48
Main.tf - - Creating a Cluster
module "dcos" {
source = "dcos-terraform/dcos/aws"
cluster_name="my-open-dcos-cluster"
ssh_public_key_file="~/.ssh/id_rsa.pub"
num_masters = "1"
num_private_agents = "2"
num_public_agents = "1"