Skip to content

Instantly share code, notes, and snippets.

Avatar
🌈
statuses now?

Shaun Mouton moutons

🌈
statuses now?
View GitHub Profile
@moutons
moutons / secret.rb
Created Jan 3, 2020 — forked from jjasghar/secret.rb
Example Chef extension to extract secrets from HashiCorp's Vault
View secret.rb
# Please see the following blog post for more information:
#
# https://www.hashicorp.com/blog/using-hashicorp-vault-with-chef.html
#
resource_name :vault_secret
property :path, String, name_property: true
property :destination, String
@moutons
moutons / README.md
Created Sep 16, 2016 — forked from lusis/README.md
rundeck slack hubot integration
View README.md

This is a pretty opinionated solution that we use internally. It's strictly designed to post to slack via the API and it uses our notion of wrapping EVERYTHING with a role. All of our plugins automatically use brain storage as well. To be able to execute anything with hubot, you have to be a rundeck_admin role user.

You should be able to tease out the rundeck API stuff specifically.

It depends on a common format for your job defs in rundeck. We have two types of jobs in rundeck that we use via this plugin:

  • ad-hoc
  • predefined

ALL of our jobs have a common parameter called slack_channel. Hubot will automatically set this for you based on where/who it was talking to.

View 📶🔤📧.md

🎦🎦🎦🎦🎦🎦🎦👔🔡🔘💈🎳🐘🎏🐘👀🌉📹🍆🌷🌷🌷🚬🍷🍆🌷🚬💣🍷🚬🌷🌷🌷🎳💈👀🐰🐰🐰🔘🔘👟👀🐰🐰🌉📤📤🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🎡🎡🎡🏢🎡🎡🎡
🎦👔🎦👔👔🎦🎦🎦💨💈🎳🍆🌷🌷🎏📹💈🐘🌷🌷🌷🌷🌷🌷🌷🌷🍷💣💣💣🍷🌷🍆🍡💈🐰💈💈💈🐰🐰💈💈📹📹💈🔘📧🎦🏢🏢🏢🏢🏢🏢🏢🎡🎡🏢🏢🏢🏢🏢🏢🏢🏢🎡🎡🏢
🎦🎦🎦👔👔👔👔🎦💨💈🐘🌷🌷🌷🍆🐘🐘🐘🍆🌷🚬🌷🌷🌷🌷🌷🍷🍷🍷🍷🌷🌷🐘💻💈💈💈💈💈💈💈💈💼🎌🍆🎳🐰📧🎦🎦🎦🎦🏢🎦🎦🏢🏢🎡🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢
🎦🎦🎦🎦🎦🎦👔👔💨💈🎌🍆🍆🌷🍆🐘🐘🌷🍷🍷💣🍷🌷🌷🍷🌷🌷🍆🎌🍆🍆🌷🎳💈🐰🐰💈💈💈💈💈💼🍡🍆🌷🍆💈📧🎦🎦🎦👔🎦🎦🎦👔👔👔🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🏢🎦
👔🎦🎦🎦🎦🎦🎦🎦💨🌉🍡🍆🌷🌷💣🍆🌷💣💣💣💣💣🚬🌷🚬🌷🎌🎌🍡🎌🎌🐘🍡💈👟💈🚓🚓💼🔮💈🚓🎌🍆🌷🍆🐰📧🎦👔🎦👔👔🎦👔👔👔👔👔🎦👔👔🏢🎦👔👔🎦🎦👔🎦
🎦🎦🎦🎦🎦🎦🎦🎦🔡🔲🐘🌷🌷🌷💣🍆🌷💣🎣🔻🔻🔻💣🌷🌷🌷🎌🎌🍡🎳🎌🐘🍡💈💈🚓🍆🍆🎌🔮👟💼🎌🍷🌷🍡🐰📧👔🎦👔👔👔👔👔👔👔👔👔🎦👔👔👔👔👔👔👔🎦👔🎦
🎦🎦🎦🎦🎦🎦🎦🎦💨💈🍆🌷🌷🚬🌷🌷💣💣🔻🎓🔻🔻🔻🔻🎓🔻🍷🍆🎌🐘🍆🎏🐘🍡🍡🍆🍆🍆🍆🐰📤👟🚓🍆🎌💈📱🔣👔👔👔👔🎦👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔👔
🎦🎦🎦💨🔮🍆🌷🌷🌷🌷🌷💣💣🔨📍🔻🔻🍷💣🔻💣💣💣🍷🌷🍷💣🍷🌷🌷💣🍷🍷🎌📤🔤📧📤🐰📱📤📧🎦🎦👔👔🎦👔👔🎦🎦👔👔👔👔👔👔👔👔👔👔👔👔👔
📶📶📶💎📹🍆🌷🌷🌷🌷🌷💣🔻📍📍🎓🔻🍷💣🍆🎌💣💣💣💣💣💣💣💣🔻🔻💣🍷🍡📤🕕📧📧📧📧💨💨💨📧🎦🎦🎦🎦🎦🎦👔👔👔👔👔👔👔👔👔👔👔👔👔
📶📶📶📶📶📶💨💈🐘🐘🍆🍆🌷💣🔻🎓📍📍🎓🔻💣🍷🌷🍷🚏🎣🔻🔻💣🔻🔻🔻🔻🔻🔻🍷💈📧🔢🔣🔡📧👕💨🎦🎦🎦🎦🎦🎦🎦🎦🎦👔👔👔👔👔🎦👔👔👔

@moutons
moutons / washing-the-dishes.md
Last active Mar 11, 2016
An excerpt from Thich Nhat Hanh's [The Miracle of Mindfulness: An Introduction to the Practice of Meditation](http://www.amazon.com/The-Miracle-Mindfulness-Introduction-Meditation/dp/0807012394)
View washing-the-dishes.md

Washing the dishes to wash the dishes

by Thich Nhat Hanh

Thirty years ago, when I was still a novice at Tu Hieu Pagoda, washing the dishes was hardly a pleasant task. During the Season of Retreat when all the monks returned to the monastery, two novices had to do all the cooking and wash the dishes for sometimes well over one hundred monks. There was no soap. We had only ashes, rice husks, and coconut husks, and that was all. Cleaning such a high stack of bowls was a chore, especially during the winter when the water was freezing cold. Then you had to heat up a big pot of water before you could do any scrubbing. Nowadays one stands in a kitchen equipped with liquid soap, special scrubpads, and even running hot water which makes it all the more agreeable. It is easier to enjoy washing the dishes now. Anyone can wash them in a hurry, then sit down and enjoy a cup of tea afterwards. I can see a machine for washing clothes, although I wash my own things out by hand, but a dishwashing machine is going just a li

@moutons
moutons / centos6base.ks.cfg
Created Oct 1, 2012
kickstart for CentOS 6
View centos6base.ks.cfg
install
text
skipx
url --url http://example.com/centos/6/os/x86_64/
lang en_US.UTF-8
keyboard us
reboot
network --onboot yes --device eth0 --bootproto dhcp --noipv6
rootpw changeme
selinux --disabled
@moutons
moutons / centos63.ks
Created Oct 1, 2012
CentOS 6.3 kickstart
View centos63.ks
text
skipx
install
url --url http://ftp.astral.ro/distros/centos/6.3/os/x86_64/
repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/6/x86_64/
repo --name=updates --baseurl=http://ftp.astral.ro/distros/centos/6.3/updates/x86_64/
lang en_US.UTF-8
keyboard us
firewall --disabled
authconfig --enableshadow --passalgo=sha512
@moutons
moutons / kscentos6_64bits.cfg
Created Oct 1, 2012 — forked from mk-qi/kscentos6_64bits.cfg
Kickstart file for centos6 64bits
View kscentos6_64bits.cfg
# Kickstart file automatically generated by anaconda.
install
url --url http://192.168.200.10/centos/
lang en_US.UTF-8
keyboard us
skipx
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$mPtrz4gJ$bNrGUu91/qhiuU4LZQlYv1
@moutons
moutons / gist:3812047
Created Oct 1, 2012 — forked from nemf/gist:3109649
Minimal Kickstart for CentOS 6.3
View gist:3812047
install
url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/
# if you use proxy
# url --url http://ftp.iij.ad.jp/pub/linux/centos/6.3/os/x86_64/ --proxy http://proxy-ip:8080/
lang en_US.UTF-8
keyboard us
network --bootproto=dhcp
rootpw password
firewall --disabled
authconfig --enableshadow --passalgo=sha512
@moutons
moutons / puppet-kickstart.sh
Created Oct 1, 2012 — forked from mfox/puppet-kickstart.sh
Quickly install Puppet from source + dependencies
View puppet-kickstart.sh
#!/bin/bash
# Quick and easy script to install Puppet, Facter and dependencies.
# Kickstarts a node ready for puppeting.
# Tested with:
#
# - Scientific Linux 6.1, 6.2, 6.3
# - CentOS 6.3
@moutons
moutons / gist:3812063
Created Oct 1, 2012 — forked from bpholt/gist:2514187
Puppet links
View gist:3812063
NCState Linux kickstart -> http://www.linux.ncsu.edu/realm_linux/usersguide-EL4/ch07.php
FermiLab's Anaconda Wiki -> http://fermilinux.fnal.gov/distribution/slf-5/installation/kickstart
Bootstrapping Puppet Agent on CentOS6 -> https://github.com/ahamilton55/Blog-Scripts/blob/master/puppet_agent_install/centos6_setup.sh
Custom Kickstart Process -> http://smorgasbork.com/component/content/article/35-linux/128-building-a-custom-centos-6-kickstart-disc-part-1
VMWare Template MAC Addresses -> https://peterpap.net/index.php/Creating_a_CentOS%5CRed_Hat_VMware_template
creating a minimal centos vm -> http://lsimons.wordpress.com/2011/06/03/creating-a-minimal-centos-vm/
Unit Testing in Puppet -> http://www.jedi.be/blog/2011/12/05/puppet-unit-testing-like-a-pro/
You can’t perform that action at this time.