Skip to content

Instantly share code, notes, and snippets.

View vjanelle's full-sized avatar
💭
Day drinking

Vincent Janelle vjanelle

💭
Day drinking
View GitHub Profile

Keybase proof

I hereby claim:

  • I am vjanelle on github.
  • I am random (https://keybase.io/random) on keybase.
  • I have a public key whose fingerprint is 4223 2D96 8BEF 1F0A 229D 72AA 5C6C 56AE 9D17 E85F

To claim this, I am signing this object:

config.vm.provider "vmware_fusion" do |v|
v.vmx["scsi0:1.filename"] = "disk2.vmdk"
v.vmx["scsi0:1.present"] = "TRUE"
v.vmx["scsi0:1.redo"] = ""
end
# -*- mode: ruby -*-
# vi: set ft=ruby :
# This configuration requires Vagrant 1.1 or newer and two plugins:
#
# vagrant plugin install vagrant-hosts
# vagrant plugin install vagrant-auto_network
#
# If using Vagrant boxes provided by PuppetLabs, verions 4.2.10 of VirtualBox
# is reccomended.
define foo::test (
$var = 1,
$var_x = "test_${$var}",
) {
notice($var_x)
}
foo::test { 'test': }
foo::test { 'test2':
@vjanelle
vjanelle / find_by_ip_interface.rb
Last active December 14, 2015 08:58
attempts to find an interface that'll serve the IP address
# find_ip_by_interface.rb
#
# Attempts to discover which interface will serve a particular destination
#
require 'ipaddr'
module Puppet::Parser::Functions
newfunction(:find_ip_by_interface, :type => :rvalue) do |args|
address = IPAddr.new(args[0])
@vjanelle
vjanelle / macaddresses.rb
Last active December 14, 2015 03:09
Generates facts to identify the interface a mac address is associated with
# Fact:
# macaddresses to interfaces
#
# Purpose:
# Make a fact to detail the interfaces for a normalized mac address
#
# Caveats:
# Only tested on linux, deals with 802.3ad bonded links, but I have not
# tested other kinds of interfaces
#
@vjanelle
vjanelle / README
Created January 30, 2013 20:35
getting to pocco to work with the command line
I had to execute easy_install pygments, which worked. This is to stop it from communicating my secret manifests over the internets.
The puppet module has an exec statement to self-generate the docs for the manifest.
I also had to 'rvm system', because I don't know what I'm doing.
@vjanelle
vjanelle / gist:3241837
Last active October 7, 2015 23:35
rabbitmq::repo::rhel rspec file
require 'spec_helper'
describe 'rabbitmq::repo::rhel' do
describe 'package with params' do
let :params do
{
:key => "http://www.rabbitmq.com/rabbitmq-signing-key-public.asc",
:version => "2.8.4",
:relversion => "1",·
}