Skip to content

Instantly share code, notes, and snippets.

View aussielunix's full-sized avatar
🤠
G`Day

Mick Pollard aussielunix

🤠
G`Day
View GitHub Profile
@aussielunix
aussielunix / Puppetfile
Created August 4, 2012 03:43
librarian-puppet install
mod "apt",
:git => "git://github.com/puppetlabs/puppetlabs-apt.git"
mod "stdlib",
:git => "git://github.com/puppetlabs/puppetlabs-stdlib.git"
mod "jenkins",
:git => "git://github.com/rtyler/puppet-jenkins.git"
# my fork has no deps in the Modulefile
## librarian-puppet questions / shortfalls 20120807
* librarian-puppet outdated is silent and useless when using git as a source
** add support to do a git diff on remote and report it
* librarian-puppet update needs to be able to update a single module only when using git as a source
* librarian-puppet check - same as bundle check
** then we can do things like librarian-puppet check || librarian-puppet install
* check if modules keep thier .git and are on a branch
** occasionally seeing modules disconnected from any branch but cannot reliably repeat this
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "lucid64"
config.vm.box_url = "http://files.vagrantup.com/lucid64.box"
end
@aussielunix
aussielunix / Vagrantfile
Created August 8, 2012 11:13
shellthings
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
config.vm.box = "lucid32"
config.vm.box_url = "http://files.vagrantup.com/lucid32.box"
config.vm.forward_port 8080, 8080
config.vm.provision :puppet, :module_path => "modules" do |puppet|
puppet.manifests_path = "."
puppet.manifest_file = "init.pp"
@aussielunix
aussielunix / MyPuppetforgeVision.markdown
Last active October 11, 2015 07:38
My Puppet Forge Vision

Puppet Modules and the Forge

The current management of puppet modules could do with some changes.
Rather than point out the things I dislike I will just outline my vision of how I see it all working.

Forge

  • displays module metadata only. No actual module storage.
  • Each listed module is just a link off to a code hosting site of choice (github, bitbucket etc)
  • PMT reads meta data from forge and grabs module from appropriate code hosting site (wget?)
@aussielunix
aussielunix / methadone.rb
Last active October 12, 2015 15:38
I think I could become addicted to methadone
#!/usr/bin/env ruby
require 'methadone'
require 'pp'
include Methadone::Main
include Methadone::CLILogging
# Main logic in here
#
@aussielunix
aussielunix / gist:4367237
Created December 24, 2012 02:51
share any directory via HTTP
alias rs='ruby -rwebrick -e "s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('\''INT'\'') { s.shutdown }; s.start"'
@aussielunix
aussielunix / gitlg.alias
Created December 26, 2012 23:04
nicer git log format. git lg git lg -p
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
@aussielunix
aussielunix / vpnc-script-sshd
Created January 24, 2013 00:45
alternate vpnc-script with some special ssh lurve
#!/bin/sh
#
# © 2009 David Woodhouse <[email protected]>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
@aussielunix
aussielunix / node.pp
Last active December 13, 2015 20:29
how to set ordering at a node level. This includes ensuring your apt repo is installed before installing packages.
node default {
include mongo
# Apt::Source things must always happen before Package things
#
Apt::Source <| |> -> Package <| |>
# ensure your apt repo is available
# this is where I have graylog2 and elasticsearch packages
#