Skip to content

Instantly share code, notes, and snippets.

View mrlesmithjr's full-sized avatar

Larry Smith Jr. mrlesmithjr

View GitHub Profile
---
- hosts: all
gather_facts: false
connection: local
vars:
- cleanup_temp: true
- gather_dir: ~/gather_info
- host_vars_dir: ~/ansible/host_vars
- pysphere_script_home: library
- ssh_known_hosts_command: ssh-keyscan
@mrlesmithjr
mrlesmithjr / monitrc
Created October 6, 2015 11:09
config for mailinglist
###############################################################################
## Monit control file
###############################################################################
##
## Comments begin with a '#' and extend through the end of the line. Keywords
## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'.
##
## Below you will find examples of some frequently used statements. For
## information about the control file and a complete list of statements and
## options, please have a look in the Monit manual.
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
---
- name: Spins up an ELK Stack Docker environment
hosts: all
sudo: true
vars:
roles:
tasks:
- name: Spin up Elasticsearch
docker:
name: elasticsearch
@mrlesmithjr
mrlesmithjr / playbook.yml
Last active January 30, 2016 20:31
Ubuntu Desktop Like a Boss
---
- name: Set up Fresh Ubuntu Desktop
hosts: all
sudo: true
handlers:
- name: restart avahi-daemon
service:
name: avahi-daemon
state: restarted
- name: restart netatalk
---
- name: create some vms
hosts: localhost
connection: local
vars_prompt:
- name: "vcenter_host"
prompt: "Enter vcenter host"
private: no
default: "vcsa"
- name: "vcenter_user"
#!/bin/bash
sudo apt-get update
sudo apt-get -y install python-setuptools python-dev libffi-dev libssl-dev git sshpass
sudo easy_install pip
sudo -H pip uninstall -y virtualenv
sudo -H pip uninstall -y virtualenvwrapper
sudo -H pip install virtualenv
sudo -H pip install virtualenvwrapper --ignore-installed six
sudo -H pip install httplib2
@mrlesmithjr
mrlesmithjr / gist:e52247f092dde7cca84b
Created January 30, 2016 05:05 — forked from Aricg/gist:56f1a769cbdcbb93b459
Enable gerrit replication to github
Gerrit version 2.8
Replication plugin extracted from gerrit.war and installed over ssh
Installation method ->
a) Relevant configs:
/var/lib/gerrit/etc/replication.config
[remote "aricg-compliance"]
url = git@github.com:somerepo/${name}.git

Keybase proof

I hereby claim:

  • I am mrlesmithjr on github.
  • I am mrlesmithjr (https://keybase.io/mrlesmithjr) on keybase.
  • I have a public key whose fingerprint is 0443 89A2 A938 F458 BA43 E96A A8E2 4849 7885 6904

To claim this, I am signing this object:

#!/bin/bash
sudo apt-get update
sudo apt-get install -y git python-dev python-pip
sudo pip install ansible