gem 'stdlib', :git => "https://github.com/puppetlabs/puppetlabs-stdlib.git"
gem 'apt', :git => "https://github.com/puppetlabs/puppet-apt.git"
gem 'mongodb', :git => "https://github.com/puppetlabs/puppetlabs-mongodb.git"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The version of rubygems is too old in the Lucid repositories so I make use of a thirdparty PPA. | |
This PPA is from Mackenzie Morgan - a Ubuntu Developer - https://launchpad.net/~maco.m/+archive/ruby | |
1) add Mackenzie's PPA | |
sudo apt-get install python-software-properties | |
sudo add-apt-repository ppa:maco.m/ruby | |
2) let apt see the new repositories |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lunix@glenmorangie] -> cat .gitmodules | |
[submodule "bundle/syntastic"] | |
path = bundle/syntastic | |
url = git://github.com/scrooloose/syntastic.git | |
[submodule "bundle/puppet"] | |
path = bundle/puppet | |
url = git://github.com/rodjek/vim-puppet.git | |
[submodule "bundle/tabular"] | |
path = bundle/tabular | |
url = git://github.com/godlygeek/tabular.git |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you add the following to your ~/.bashrc you can the serve the contents of any directory with ruby/webrick on port 3000. | |
alias rs="ruby -rwebrick -e \"s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => Dir.pwd); trap('INT') { s.shutdown }; s.start\"" | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* | |
!/.gitignore | |
!/*.xml | |
!/nextBuildNumber | |
!/jobs | |
!/jobs/* | |
!/jobs/*/*.xml | |
/jobs/*/disk-usage.xml | |
/jobs/*/builds |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
if [ "$#" -eq 1 ]; then | |
SavePath=$1 | |
else | |
SavePath=$(zenity --file-selection --save --confirm-overwrite --filename $HOME/personal/media/Videos/screencasts/incoming/ ) | |
fi | |
echo "Saving video to $SavePath" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'pp' | |
require 'fog' | |
credentials = { | |
:provider => "vsphere", | |
:vsphere_username => "foo", | |
:vsphere_password=> "bar", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node /^foo-app-\d+.example.net$/ { | |
roles:app_server { $fqdn: | |
collectd_client_report_to => 'foo-monitor-01.example.net', | |
syslog_client_report_to => 'foo-log-01.example.net' | |
} | |
roles:backup { $fqdn: | |
backupserver => 'backup-01.example.net', | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
... | |
... | |
... | |
group :test do | |
gem 'rspec' | |
gem 'mechanize' | |
gem 'puppet-lint' | |
gem 'rake' | |
end |