This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"vscode": { | |
"extensions": [ | |
"dasfranck.jellybeans", | |
"dracula-theme.theme-dracula", | |
"karyfoundation.theme-karyfoundation-themes", | |
"Pendrica.chef", | |
"sdras.night-owl", | |
"sidneys1.gitconfig", | |
"teabyii.ayu", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Puppet setup | |
curl https://packagecloud.io/install/repositories/rlyon/omnibus-puppet/script.rpm | bash | |
yum -y install puppet | |
yum -y install git | |
PUPPET_GEM=/opt/puppet/embedded/bin/gem | |
$PUPPET_GEM install r10k --no-rdoc --no-ri | |
$PUPPET_GEM install sinatra --no-rdoc --no-ri | |
$PUPPET_GEM install webrick --no-rdoc --no-ri |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
MAJOR=$(cat /etc/redhat-release | sed 's/^.*\ \([5-7]\).*$/\1/') | |
yum -y localinstall http://yum.puppetlabs.com/puppetlabs-release-el-$MAJOR.noarch.rpm | |
yum -y install puppet rubygem-puppet-lint | |
yum -y install git | |
# Make sure puppet is configured correctly | |
cat > /etc/puppet/puppet.conf << 'EOF' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
### | |
### Download and install the EPEL repositories and some extra | |
### dependencies. | |
### | |
cd | |
if ! [[ -f epel-release-6-8.noarch.rpm ]] ; then | |
wget http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm | |
yum -y localinstall epel-release-6-8.noarch.rpm | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# ... Other configs | |
# | |
config.vm.network :private_network, ip: "33.33.33.10" | |
# In certain cases, vagrant will hang for a long time and then | |
# error out. For some reason that I haven't bothered looking in | |
# to, I have to explicitly turn on the the vbox dns resolver. | |
# | |
config.vm.provider :virtualbox do |vb| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# DIR=$(python -c "import os; print os.path.dirname(os.path.realpath('${0}'))") | |
cd $HOME/chef/databags/shutter | |
echo "Processing in $PWD" | |
if [ $# -ne 1 ] ; then | |
echo "You didn't specify the list to convert and upload." | |
echo "USAGE: upload.sh myfirewall" | |
exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function header() { | |
printf "\e[0;36m$1\e[0m\n" | |
} | |
function error() { | |
printf " \e[1;31m!!! $1\e[0m\n" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Put the host into maintainance mode, copy all the xsupdate patches in, ssh | |
# to the system and run this. This should be easy to convert into a single | |
# one stop script for updating all members in a pool. | |
# Assumes that the hostname amd the name-label are the same. If not | |
# it will not work. | |
HOST=$(hostname | cut -d'.' -f1) | |
UUID=$(xe host-list | grep -B1 $HOST | grep uuid | awk -F': ' '{print $2}') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Check to see if we have the filelist specified | |
if [ $# -ne 1 ] ; then | |
echo "Usage: $0 [filelist]" | |
exit 1 | |
fi | |
# Does the filelist exist? | |
if [ ! -f "$1" ] ; then | |
echo "File: $1 does not exist" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
trap "touch $HOME/.bofh_interupted" SIGINT | |
echo "####################################################" | |
echo "# This is the home directory cleaning process. #" | |
echo "####################################################" | |
echo | |
### |