Skip to content

Instantly share code, notes, and snippets.

@vStone
vStone / Gemfile
Created November 30, 2012 11:53
Rakefile for your puppet modules.
source :rubygems
gem 'rake'
gem 'rspec', '>2'
gem 'rspec-puppet'
gem 'puppetlabs_spec_helper'
## Optionally use puppet-lint for style checks.
#gem 'puppet-lint'
@vStone
vStone / noeolfile
Created August 3, 2012 09:18
Perl script to strip newline at end of files.
#!/usr/bin/perl
## Strips the newline from the end of a file.
# This is important because we cant have newlines after the pw hash.
# Run this on a file before committing.
use autodie qw(open sysseek sysread truncate);
my $file = shift;
open my $fh, '+>>', $file;
@vStone
vStone / params.pp
Created January 19, 2012 15:25
Example / Trial use case for 'dynamic' module incorp.
# === Actions:
#
# === Requires:
#
# === Sample Usage:
#
class passenger::params (
$packages = undef,
$configpath = undef,
$version = undef,