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 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 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 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 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 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 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 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
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 |
This file contains 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
## 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 |
This file contains 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
# -*- 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 |