Skip to content

Instantly share code, notes, and snippets.

View abrader's full-sized avatar

Andrew Brader abrader

  • Portland, OR 97209
View GitHub Profile
@abrader
abrader / SLES_113_Demo_Vagrantfile
Created March 12, 2014 14:35
SLES_11.3 Vagrant Sample
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
@abrader
abrader / rspec-puppet.md
Last active August 29, 2015 14:03
RSpec-Puppet Doc

RSpec-Puppet

Overview on how to use RSpec-Puppet.


What does it test?

Per Tim Sharpe, "RSpec-Puppet tests are there to test the behaviour of Puppet when it compiles your manifests into a catalogue of Puppet resources."


@abrader
abrader / pre-commit
Created September 29, 2014 20:14
<git repo>/.git/hooks/pre-commit for Puppet developers
#! /bin/sh
# If we don't have a HEAD, then this is the first commit and we can't do any of this
git show > /dev/null 2>&1
if [ $? -ne 0 ]; then exit 0; fi
# first stash any on-disk changes so we're actually validating
# what's staged to be committed and not just what's on disk.
git diff --full-index --binary > /tmp/stash.$$
git stash -q --keep-index
@abrader
abrader / pdc.md
Last active August 29, 2015 14:07
Puppet development checklist
@abrader
abrader / weblogic_refactor_review.md
Last active August 29, 2015 14:23
Weblogic: Refactor review

Weblogic: Refactor review


This document is to serve as a running tally of how the revised version of the Weblogic module abrader/weblogic can be improved upon to provide:

  • Improved usability
  • Improved readability
  • Complexity reduction
  • Retained functionality
@abrader
abrader / lowdown.md
Last active September 10, 2015 13:04
Group/Org support in GMS module

Group Support

Each GMS system supports the idea of groups differently.

Function GitHub GitLab Stash
git_groupteam Organization -> Team -> Members Groups -> Team Members Groups -> Members
git_deploy_keys Support only for repository level deploy keys only Project deploy key support only Support for both project and repository level deploy keys
git_webhook Organizational and respository level webhook support Project webhook support only Support for repository level webhooks only
@abrader
abrader / get_environment_version.sh
Created September 17, 2015 19:13
Script for returning commit hash for use with Puppet environments
#! /bin/sh
if (( $# != 1 )); then
echo "Call this script with the name of the environment"
echo "Example: ${0} production"
exit 1
fi
ENVROOT='/etc/puppetlabs/code/environments'
GITDIR="${ENVROOT}/${1}/.git"
@abrader
abrader / f5_clientsslprofile_README.md
Last active March 24, 2016 14:05
f5_clientsslprofile README

puppetlabs-f5_rest::f5_clientsslprofile

A placeholder.

Debugging

Troubleshooting issues when APIs are involved can be painful. Now the advertised providers within this module can pass you useful debugging info when you append the debug argument to your puppet run:

puppet apply --debug
@abrader
abrader / f5_persistenceprofile_README.md
Last active December 22, 2015 15:33
f5_persistenceprofile README

puppetlabs-f5_rest additonal types

A placeholder.

Debugging

Troubleshooting issues when APIs are involved can be painful. Now the advertised providers within this module can pass you useful debugging info when you append the debug argument to your puppet run:

puppet apply --debug
@abrader
abrader / f5_sslcertlist_README.md
Last active December 22, 2015 22:36
f5_sslcertlist README

puppetlabs-f5_rest::f5_sslcertlist

SSL certificates management

Debugging

Troubleshooting issues when APIs are involved can be painful. Now the advertised providers within this module can pass you useful debugging info when you append the debug argument to your puppet run:

puppet apply --debug