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
# Variables goes hither
declare -a FILES
IFS="
"
FILES=$(git diff --cached --name-only --diff-filter=ACM )
# I we don't have puppet-lint, so just exit and leave them be.
which puppet-lint >/dev/null 2>&1 || exit
# I we don't have puppet, so just exit and leave them be.
which puppet >/dev/null 2>&1 || exit
@aussielunix
aussielunix / Gemfile
Created July 4, 2012 13:30
puppet testing from jenkins
...
...
...
...
group :test do
gem 'rspec'
gem 'mechanize'
gem 'puppet-lint'
gem 'rake'
end
@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"