Get the JAR files from github
wget https://github.com/downloads/dtolabs/rundeck/rundeck-launcher-1.1.0.jar --no-check-certificate
Install Java
sudo apt-get install openjdk-6-jre
;; Do civilized backup names. Added by dbrady 2003-03-07, taken from | |
;; http://emacswiki.wikiwikiweb.de/cgi-bin/wiki.pl?BackupDirectory | |
;; | |
;; Don't forget to mkdir ~/saves | |
(setq | |
backup-by-copying t ; don't clobber symlinks | |
backup-directory-alist | |
'(("." . "~/saves")) ; don't litter my fs tree | |
delete-old-versions t | |
kept-new-versions 6 |
bash -c ' | |
rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm | |
yum install -q -y sudo gcc gcc-c++ automake autoconf make readline-devel.x86_64 libffi-devel.x86_64 libyaml-devel.x86_64 zlib-devel.x86_64 openssl-devel.x86_64 wget | |
# This may not be necessary for you | |
yum remove -q -y ruby-libs ec2-ami-tools | |
wget http://someurl.domain.com/ruby-1.9.2p180_x86_64.rpm -O /tmp/ruby-1.9.2p180_x86_64.rpm | |
yum localinstall --nogpgcheck -q -y /tmp/ruby-1.9.2p180_x86_64.rpm |
server_data = compute.create_server( | |
1, | |
49 | |
).body['server'] | |
until compute.get_server_details( | |
server_data['id'] | |
).body['server']['status'] == 'ACTIVE' | |
end |
module MCollective | |
module Agent | |
# An agent that uses Opscode to manage resources | |
# Original credit goes to R.I. Pienaar | |
class ChefExistingResource < RPC::Agent | |
metadata :name => "SimpleRPC Existing Chef Resource Agent", | |
:description => "Generic resource management", | |
:author => "Nicolas Szalay <nico@rottenbytes.info>", | |
:license => "BSD", | |
:version => "1.0", |
require 'awesome_print' | |
require 'trollop' | |
def convert_input(arguments) | |
arguments.reject do |option| | |
option !~ /^[a-z]+:[a-z]{2,}-*[a-z]*-*\d*$/ | |
end.map do |option| | |
opt, value = option.split(':') | |
[ '--' + opt, value ] | |
end.flatten |
######################################################################## | |
### Rakefile for encrypted passwords | |
######################################################################## | |
# | |
# Here's a little Rakefile to manage your encrypted password file! It's | |
# really easy to use: | |
# | |
# 1) put the email addresses of the keys you want in AUTHORIZED_USERS | |
# 2) create a passwords.txt (and ignore it in your SCM) | |
# 3) run `rake passwords:encrypt` |
#! /bin/sh | |
set -e | |
if grep -qs nochef /proc/cmdline; then | |
exit 0 | |
fi | |
apt-get install -y python-software-properties | |
add-apt-repository ppa:varnish-software/sysadmin |
app = node.run_state[:current_app] | |
use_ree = false | |
if node.run_state[:seen_recipes].has_key?("ruby_enterprise") | |
use_ree = true | |
end | |
if app['packages'] | |
app['packages'].each do |pkg,ver| | |
package pkg do |
The best way to use this tool is to hook apt's use of dpkg to run it before doing any package installs.
In your apt.conf, put this:
DPkg::Pre-Install-Pkgs {"xargs -L1 bash /path/to/stripdeb.sh 2>&1 | logger -t stripdeb"}
Then, a demo:
% sudo apt-get install mysql-server-5.1