Skip to content

Instantly share code, notes, and snippets.

View nfisher's full-sized avatar
🏠
Working from home

Nathan Fisher nfisher

🏠
Working from home
View GitHub Profile
@nfisher
nfisher / Vagrantfile
Last active December 13, 2015 22:08
Mongo DBA Week 4 - Replica Sets
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.provision :puppet do |puppet|
# equivalent to;
# puppet apply manifests/base.pp
@nfisher
nfisher / gist:3680788
Created September 8, 2012 23:08
Array concatenation, scoped variables and templates
# Given the configuration below.
# Expected results list of users in bip.conf.
# Actual results in an empty file.
# bip.conf
<%
usernames = scope.lookupvar('users::usernames')
fullnames = scope.lookupvar('users::fullnames')
-%>